Skip to content

TheDMSGroup/terraform-aws-container-definition

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECS Container Definition

This module make it easier to create and standardize Container Definitions for your ECS Services. Official documentation for the Task's Container Definitions can be found here.

Example
  provider aws {
    region = "us-east-1"
  }

  module task_def {
    source = "ecs-container-definition"

    name = "api-gateway"

    image         = "nginx"
    image_version = "lastest"

    command = ["foo"]
    entrypoint = ["bar"]

    cpu    = 128
    memory = 512

    environment_variables = [{
      name  = "SERVER_PORT",
      value = 8181
    }]

    port_mappings = [
      { container_port = 8181, host_port = 8181 }
    ]

    cloudwatch_log_group = "my-example-log-group"
  }

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%