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

stocky-magazine-78486

08/18/2021, 3:37 PM
Reposting here, to have a better reach
l

little-cartoon-10569

08/18/2021, 9:15 PM
You can have any number of RolePolicyAttachment resources attaching policies to the same role. The only requirement is that each one has a different Pulumi name (first parameter). If you re-use the name, then they are the same resource and the last definition wins.
Alternatively, you can use the
inlinePolicies
property on
Role
, but I recommend against that. You cannot add policies to a role in two places if you do that; you must know all your policies in advance.
s

stocky-magazine-78486

08/19/2021, 1:57 AM
Thanks @little-cartoon-10569, I must have used the same name by-mistake. It’s working now. Thanks alot!
👍 1