Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Last active May 2, 2023 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendrixroa/691ba7e1773d4d9b5a80963cc805bb79 to your computer and use it in GitHub Desktop.
Save hendrixroa/691ba7e1773d4d9b5a80963cc805bb79 to your computer and use it in GitHub Desktop.
AWS ECS Task definition
resource "aws_ecs_task_definition" "main" {
family = "${var.app}-service"
requires_compatibilities = ["FARGATE"]
network_mode = "awsvpc"
execution_role_arn = var.execution_role_arn
cpu = var.cpu_unit
memory = var.memory
container_definitions = data.template_file.main.rendered
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment