https://pulumi.com logo
Title
a

abundant-carpenter-25244

05/08/2023, 9:49 PM
Is there a way to generate code for pulumi without modifying the stack?
pulumi import
by default updates the stack
e

echoing-dinner-19531

05/08/2023, 9:55 PM
Make a dummy stack, import into that then delete the stack (
pulumi stack rm
, not
pulumi destroy
)
a

abundant-carpenter-25244

05/08/2023, 9:56 PM
Oof, ok. I suppose that works.
e

echoing-dinner-19531

05/08/2023, 9:57 PM
Issue tracking first-class support for this at https://github.com/pulumi/pulumi/issues/8836 if you want to add a thumbs up (votes do influence planning)
b

busy-monitor-69572

05/08/2023, 10:34 PM
codegen only mode would be awesome.
c

cuddly-magician-97620

05/08/2023, 11:26 PM
Not exactly what you want, but helpful: Pulumi AI | Pulumi