https://pulumi.com logo
Title
m

mysterious-wolf-74677

03/30/2021, 3:31 PM
Is there a way to use
pulumi import
without updating state possibly?
b

brave-planet-10645

03/30/2021, 3:46 PM
Do you mean just to get the code for the resource?
m

mysterious-wolf-74677

03/30/2021, 3:50 PM
@brave-planet-10645 Yes, but when you do
import
it also updates the stack, I just want the code without updating the stack.
💯 2
b

brave-planet-10645

03/30/2021, 3:52 PM
I don't believe that this is possible, but it's a great idea. Would you mind opening it as a feature request here
m

mysterious-wolf-74677

03/30/2021, 3:54 PM
@brave-planet-10645 sure! I'll write it up now.
b

brave-planet-10645

03/30/2021, 3:54 PM
Appreciate it
🤘 1
b

billowy-army-68599

03/30/2021, 4:00 PM
As a workaround, you could login to a different state, like —local and then do the import
m

mysterious-wolf-74677

03/30/2021, 4:01 PM
@brave-planet-10645 https://github.com/pulumi/pulumi/issues/6653 <--- here ya go. I'm not sure what else to write (This is my first enhancement request submission), any improvement suggestions to the request welcomed!
🙌 1
@billowy-army-68599 interesting! I'll try that