Skip to content

Commit

Permalink
Assign a variable for cpu in container def
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiPrasannaGopularam committed Apr 19, 2023
1 parent 345cfa1 commit 5c5b3a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/container_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "${service_identifier}-${task_identifier}",
"image": "${image}",
"memory": ${memory},
"cpu": 0,
"cpu": ${cpu},
"essential": true,
"memoryReservation": ${memory_reservation},
"portMappings": [
Expand Down

0 comments on commit 5c5b3a5

Please sign in to comment.