Import the resource first and then make the modification in a new step
h
handsome-cat-98152
12/09/2019, 8:45 AM
Hello @broad-dog-22463, thank you very much for the answer.
I am sorry for answering so late, but grateful that you took the time to help me.
Can this new step happen in the same
pulumi up
command?
Or do I have to1.) Include the import option2.) pulumi up3.) remove the import option and modify ressource
4.) pulumi up again
b
broad-dog-22463
12/09/2019, 9:16 AM
It’s that flow of 4 steps I’m afraid - without that flow, Pulumi isn’t actually sure you are meaning to make the changes to the imported resource
broad-dog-22463
12/09/2019, 9:16 AM
Think of it as a safety measure that Pulumi doesn’t destroy your resource while you are importing it
h
handsome-cat-98152
12/09/2019, 10:52 AM
This will be very helpful.
Thank you for sharing these insights 🙂
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.