Skip to content

Commit ff5af73

Browse files
committed
Add memoryReservation to container definition.
1 parent e1fd120 commit ff5af73

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

terraform/ecs_batch_processor_config.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,12 @@ resource "aws_ecs_task_definition" "ecs_task" {
194194
execution_role_arn = aws_iam_role.ecs_task_exec_role.arn
195195

196196
container_definitions = jsonencode([{
197-
name = "${local.short_prefix}-process-records-container"
198-
image = "${aws_ecr_repository.processing_repository.repository_url}:${local.image_tag}"
199-
cpu = 4096
200-
memory = 16384
201-
essential = true
197+
name = "${local.short_prefix}-process-records-container"
198+
image = "${aws_ecr_repository.processing_repository.repository_url}:${local.image_tag}"
199+
cpu = 4096
200+
memory = 16384
201+
memoryReservation = 16384
202+
essential = true
202203
environment = [
203204
{
204205
name = "SOURCE_BUCKET_NAME"

0 commit comments

Comments
 (0)