Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Created February 14, 2023 02:27
Show Gist options
  • Select an option

  • Save wenqiglantz/821655f9389f5735842940235d522236 to your computer and use it in GitHub Desktop.

Select an option

Save wenqiglantz/821655f9389f5735842940235d522236 to your computer and use it in GitHub Desktop.
resource "aws_ecs_task_definition" "app" {
family = local.service_name
network_mode = "awsvpc"
cpu = local.container_definition.0.cpu
memory = local.container_definition.0.memory
requires_compatibilities = ["FARGATE"]
container_definitions = jsonencode(local.container_definition)
execution_role_arn = aws_iam_role.task_execution_role.arn
task_role_arn = aws_iam_role.task_role.arn
runtime_platform {
operating_system_family = "LINUX"
cpu_architecture = "ARM64"
}
tags = merge(
local.common_tags,
{
Name = local.service_name
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment