https://pulumi.com logo
#general
Title
# general
b

bulky-agent-73210

05/10/2022, 11:59 AM
If I have a stack created with inline program, can I run pulumi CLI to import some resource into it? I’m having issues because inline program does not create .yaml file.
e

echoing-dinner-19531

05/10/2022, 12:12 PM
Not really. We'd need to add import to the commands you can run against inline programs as part of the automation sdks.
I'd use the "ImportID" resource option for this instead, it's pretty similar.
b

bulky-agent-73210

05/10/2022, 1:09 PM
Thanks, I assum in the case of Auth0 Client resource, this ID would be the Client ID, same as when importing via CLI?
e

echoing-dinner-19531

05/10/2022, 1:28 PM
yup
b

bulky-agent-73210

05/10/2022, 2:15 PM
I’m getting some input mismatch error:
**importing failed** error: inputs to import do not match the existing resource
, is there any way to make the reporting more verbose in this inline program? The auth0 resource has quite a lot of fields for me to manually check
e

echoing-dinner-19531

05/10/2022, 3:01 PM
I think if you run with
preview --diff
it might show the differences
b

bulky-agent-73210

05/10/2022, 3:02 PM
Is it possible to turn on --diff option when running the inline program?
e

echoing-dinner-19531

05/10/2022, 3:07 PM
PreviewOptions should have a
diff boolean?
property
2 Views