Skip to content

Commit

Permalink
fix: Use correct role name when attaching task policies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Dec 5, 2024
1 parent ac87a76 commit 3f924fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ resource "aws_iam_role" "task" {
}

resource "aws_iam_role_policy_attachments_exclusive" "task" {
role_name = aws_iam_role.execution.name
role_name = aws_iam_role.task.name
policy_arns = [
aws_iam_policy.secrets.arn,
"arn:${data.aws_partition.current.partition}:iam::aws:policy/CloudWatchFullAccess",
Expand Down

0 comments on commit 3f924fa

Please sign in to comment.