Is there any way to attach multiple policies to a ...
# general
j
Is there any way to attach multiple policies to a role with AWS IAM Role Policy Attachment? It seems that adding multiple role policy attachments to a single role is overwriting the previous attachments. Seems like it might be possible with raw Terraform using Count as documented here: https://stackoverflow.com/questions/45486041/how-to-attach-multiple-iam-policies-to-iam-roles-using-terraform but struggling getting it to work with Pulumi
w
Definitely possible. Do you have a code example of what you are trying that is not working?
j
Sorry @white-balloon-205 today has been super hectic. My setup was just creating a new
aws.iam.role
and then 2 subsequent
aws.iam.RolePolicyAttachment
resources. The behavior seemed to be that the second one overwrote the first. Can try and recreate and throw up a Github repo to demonstrate later this evening
155 Views