From e45ffdaf6901ce47e124d0d7ed1c6c56208835d5 Mon Sep 17 00:00:00 2001 From: Erez Samimi Date: Wed, 31 Jul 2024 15:36:44 +0300 Subject: [PATCH] [Core][Deployment][ECS] same name for 2 iam roles (#854) --- deployment/terraform/aws/ecs/modules/ecs_service/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }