Skip to content

Commit

Permalink
fix(ecs-task): Prevent overlapping cache errors in ECS tasks (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed May 3, 2024
1 parent 50becbd commit e7d1e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/services/ecs_task/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "aws_ecs_task_definition" "task_def" {
}

volume {
name = "tmp"
name = "${var.ecs-task_name}-temp-data"
}

task_role_arn = aws_iam_role.run_task_role.arn
Expand Down Expand Up @@ -49,7 +49,7 @@ resource "aws_ecs_task_definition" "task_def" {
mountPoints : [
{
"containerPath" : "/tmp/nwpc",
"sourceVolume" : "tmp"
"sourceVolume" : "${var.ecs-task_name}-temp-data"
}
]
}
Expand Down

0 comments on commit e7d1e5c

Please sign in to comment.