Skip to content

Commit

Permalink
update iam role names
Browse files Browse the repository at this point in the history
  • Loading branch information
buggtb committed Feb 28, 2024
1 parent fc7f1ed commit 59ec1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform-unity/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data "aws_iam_policy" "mcp_operator_policy" {
}

resource "aws_iam_policy" "efs_access" {
name = "EFSAccessPolicy"
name = "${var.deployment_name}-EFSAccessPolicy"
description = "Policy for ECS tasks to access EFS"

policy = jsonencode({
Expand All @@ -36,7 +36,7 @@ resource "aws_iam_role_policy_attachment" "efs_access_attachment" {
}

resource "aws_iam_role" "ecs_task_role" {
name = "ecs_task_role"
name = "${var.deployment_name}-ecs_task_role"

assume_role_policy = jsonencode({
Version = "2012-10-17",
Expand Down

0 comments on commit 59ec1f6

Please sign in to comment.