Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --code-only feature to pulumi import, getting code without updating stack/state #6653

Closed
glitchwizard opened this issue Mar 30, 2021 · 1 comment
Labels
area/cli UX of using the CLI (args, output, logs) area/codegen SDK-gen, program-gen, convert kind/enhancement Improvements or new features resolution/duplicate This issue is a duplicate of another issue

Comments

@glitchwizard
Copy link
Contributor

Currently we can use pulumi import, and doing so updates the state of the stack imported. It would be great to have the something like pulumi import --code-only where it only gets the code and does not update the state of the stack.

Currently the only way we know how to do this is run pulumi import and then delete the most recent updated stack state.

Affected feature

pulumi import would be affected, giving it an option to exclude updating the state of the stack upon import. This would allow us to get the code for the part, somewhat like a template, and then use it elsewhere, without having to worry about the state of our stack potentially changing.

@glitchwizard glitchwizard added the kind/enhancement Improvements or new features label Mar 30, 2021
@komalali komalali added kind/enhancement Improvements or new features and removed kind/enhancement Improvements or new features labels Mar 30, 2021
@stack72 stack72 added area/cli UX of using the CLI (args, output, logs) area/codegen SDK-gen, program-gen, convert labels Mar 31, 2021
@mikhailshilkov mikhailshilkov added the resolution/duplicate This issue is a duplicate of another issue label Mar 15, 2022
@mikhailshilkov
Copy link
Member

This is very close to #8836 so we'll use that issue to track this improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli UX of using the CLI (args, output, logs) area/codegen SDK-gen, program-gen, convert kind/enhancement Improvements or new features resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants