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