diff --git a/deployment/terraform/aws/ecs/modules/ecs_service/main.tf b/deployment/terraform/aws/ecs/modules/ecs_service/main.tf index 60cc23dc62..c2c210ead0 100644 --- a/deployment/terraform/aws/ecs/modules/ecs_service/main.tf +++ b/deployment/terraform/aws/ecs/modules/ecs_service/main.tf @@ -117,7 +117,7 @@ data "aws_iam_policy_document" "task_execution_role_policy" { } resource "aws_iam_role" "task_role" { - name = local.service_name + name = "ecs-${local.service_name}" assume_role_policy = data.aws_iam_policy_document.ecs_assume_role_policy.json } @@ -127,7 +127,7 @@ resource "aws_iam_policy" "execution-policy" { } resource "aws_iam_role" "task_execution_role" { - name = local.service_name + name = "ecs-execution-${local.service_name}" assume_role_policy = data.aws_iam_policy_document.ecs_assume_role_policy.json }