Open tlinhart opened 2 years ago
Just a quick addition. I can work around the issue by exporting the stack, changing the corresponding resource's inputs and outputs and importing the stack back.
@tlinhart I've just tried to reproduce this issue and I haven't been able to. If you are still seeing this issue can you provide a code example that we can use to reproduce? I've tried a couple different scenarios, but the launch template always imports cleanly.
What happened?
It's not possible to import EC2 launch template to Pulumi state due to validation errors.
Steps to reproduce
Following this guide, I tried to use
pulumi import
which issued these warnings:After copy/pasting the generated code into Pulumi program and running
pulumi up
, I receive an error:Expected Behavior
As there seems to be no option to specify the corresponding options in either AWS console nor using AWS CLI, I'd need to bypass the Pulumi checks for matching inputs with the existing resource's values (while specifying enabled/disabled for the corresponding metadata options) or disable validations using pulumi up (while leaving the metadata options empty to match the existing resource's values).
Actual Behavior
Pulumi either reports a validation error when using the generated code or reports an inputs mismatch with existing resource's options.
Versions used
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).