diff --git a/ecs.tf b/ecs.tf index 1a4e5ab..bfb6bc3 100644 --- a/ecs.tf +++ b/ecs.tf @@ -6,6 +6,7 @@ locals { task_identifier = var.task_identifier image = var.docker_image memory = var.docker_memory + cpu = var.cpu memory_reservation = var.docker_memory_reservation app_port = var.app_port host_port = var.host_port diff --git a/files/container_definition.json b/files/container_definition.json index b47bda5..1f523b9 100644 --- a/files/container_definition.json +++ b/files/container_definition.json @@ -3,7 +3,7 @@ "name": "${service_identifier}-${task_identifier}", "image": "${image}", "memory": ${memory}, - "cpu": 0, + "cpu": ${cpu}, "essential": true, "memoryReservation": ${memory_reservation}, "portMappings": [