https://pulumi.com logo
Title
f

fierce-school-40904

03/15/2023, 11:36 AM
Hi all, after reading this post https://www.pulumi.com/blog/cumundi-guest-post/ I figured I'd be able to do something like
opts=ResourceOptions(
                parent=self,
                aliases=[{'parent': pulumi.ROOT_STACK_RESOURCE}],
            ),
when moving a ressource from having no parent to having one. However this just seems to fail as aliases seems to require a 'name' parameter. Am I understanding something wrong here?
alright nevermind I figured it out my autocomplete was not working with me but there was indeed an Alias class to use.
aliases=[pulumi.Alias(parent=pulumi.ROOT_STACK_RESOURCE)]
this works for those interested
l

limited-rainbow-51650

03/15/2023, 8:25 PM
Feel free to ask more questions if needed. I wrote that article before I joined Pulumi.