Reposting here, to have a better reach
# general
s
Reposting here, to have a better reach
l
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
Thanks @little-cartoon-10569, I must have used the same name by-mistake. It’s working now. Thanks alot!
👍 1