feat: added policy attachment to iam role module
This commit is contained in:
@@ -40,14 +40,9 @@ module "CsiPodIdentity" {
|
||||
]
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
# 2 policies are required for the ebs csi to work
|
||||
resource "aws_iam_role_policy_attachment" "CsiPodIdentity" {
|
||||
for_each = toset([
|
||||
# 2 policies are required for the ebs csi to work
|
||||
attach-managed-policies = [
|
||||
"arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess",
|
||||
"arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy"
|
||||
])
|
||||
role = module.CsiPodIdentity.name
|
||||
policy_arn = each.value
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user