Skip to content

Commit

Permalink
[Core][Deployment][ECS] - Fix resource name limit by 64 (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch authored Jul 29, 2024
1 parent 021d893 commit 6726ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployment/terraform/aws/ecs/modules/ecs_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ data "aws_iam_policy_document" "task_execution_role_policy" {
}

resource "aws_iam_role" "task_role" {
name = "ecs-task-role-${local.service_name}"
name = local.service_name
assume_role_policy = data.aws_iam_policy_document.ecs_assume_role_policy.json
}

resource "aws_iam_policy" "execution-policy" {
name = "ecs-task-execution-policy-${local.service_name}"
name = local.service_name
policy = data.aws_iam_policy_document.task_execution_role_policy.json
}

resource "aws_iam_role" "task_execution_role" {
name = "ecs-task-execution-role-${local.service_name}"
name = local.service_name
assume_role_policy = data.aws_iam_policy_document.ecs_assume_role_policy.json
}

Expand Down

0 comments on commit 6726ff4

Please sign in to comment.