https://pulumi.com logo
#general
Title
# general
j

jolly-lifeguard-22556

04/24/2019, 4:05 PM
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

white-balloon-205

04/24/2019, 4:06 PM
Definitely possible. Do you have a code example of what you are trying that is not working?
j

jolly-lifeguard-22556

04/24/2019, 7:24 PM
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
38 Views