https://pulumi.com logo
Title
s

stocky-fireman-97153

04/05/2021, 5:46 PM
i have an edge-case-ish question about cross account permissions and pulumi’s autogenerated resource name suffixes: how do people deal with rebuilds that cause resource renames?
considering the external account will have policies based on the full resource name which won’t be automatically updated by a rebuild of the resource being shared
l

lemon-machine-35564

04/05/2021, 7:03 PM
Disclaimer: I don’t work for Pulumi. I think the solution here is to turn autonaming off and add
deleteBeforeReplace.
s

stocky-fireman-97153

04/05/2021, 8:06 PM
dang i was afraid of that 😅
thanks for chiming in 🤝
🙌 1
c

cool-fireman-90027

04/06/2021, 1:12 PM
If the only thing that is changing is the name and not the resource, you could also use alias. Here is a blog called Refactoring Pulumi Code with `aliases`
🙏 1