gifted-balloon-26385
12/12/2023, 11:26 PMimport
key?
There are default resources present that I want to update, and since I know the ID ahead of time, I’m trying to do something like
const resource = new pkg.Resource("thing", { ..., changedProperty: true }, { import: 'existing-resourceid' });
where changedProperty
is the only property that’s different from what’s in the real state. but doing so gives me inputs to import do not match the existing resource
is there any way to do this that doesn’t require removing the changed property, importing, and then updating afterwards (trying to not add a manual step to stack setup)little-cartoon-10569
12/12/2023, 11:33 PMgifted-balloon-26385
12/12/2023, 11:38 PMlittle-cartoon-10569
12/13/2023, 12:08 AMcuddly-computer-18851
12/13/2023, 7:19 AMlittle-cartoon-10569
12/13/2023, 6:52 PMpulumi import
instead of the import id. If Pulumi imports the resources for you, they're put into state during the process, so you don't even have to remove the import opt.little-cartoon-10569
12/13/2023, 6:52 PM