Skip to content

Commit 12a118c

Browse files
authored
Merge pull request #44 from Homebrew/attach
2 parents de5471f + ecba66f commit 12a118c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

aws/roles.tf

+10-4
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,14 @@ resource "aws_iam_role" "github_tf" {
7979
]
8080
Version = "2012-10-17"
8181
})
82-
managed_policy_arns = [
83-
"arn:aws:iam::aws:policy/AdministratorAccess",
84-
aws_iam_policy.opentofu_policy.arn
85-
]
82+
}
83+
84+
resource "aws_iam_role_policy_attachment" "github_tf_opentofu_policy_attachment" {
85+
role = aws_iam_role.github_tf.name
86+
policy_arn = aws_iam_policy.opentofu_policy.arn
87+
}
88+
89+
resource "aws_iam_role_policy_attachment" "github_tf_administrator_policy_attachment" {
90+
role = aws_iam_role.github_tf.name
91+
policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
8692
}

0 commit comments

Comments
 (0)