We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de5471f + ecba66f commit 12a118cCopy full SHA for 12a118c
aws/roles.tf
@@ -79,8 +79,14 @@ resource "aws_iam_role" "github_tf" {
79
]
80
Version = "2012-10-17"
81
})
82
- managed_policy_arns = [
83
- "arn:aws:iam::aws:policy/AdministratorAccess",
84
- aws_iam_policy.opentofu_policy.arn
85
- ]
+}
+
+resource "aws_iam_role_policy_attachment" "github_tf_opentofu_policy_attachment" {
+ 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
91
+ policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
92
}
0 commit comments