After importing ec2 LaunchTemplate pulumi is overriding the field metadataOptions #2410
Labels
area/import
An issue related to `pulumi import` or the import resource option.
awaiting-feedback
Blocked on input from the author
kind/bug
Some behavior is incorrect or out of spec
needs-repro
Needs repro steps before it can be triaged or fixed
resolution/no-repro
This issue wasn't able to be reproduced
Milestone
What happened?
We have imported aws:ec2/launchTemplate:LaunchTemplate and below is
properties.metadataOptions
field generated by pulumiand we got the below warning
warning: aws:ec2/launchTemplate:LaunchTemplate resource 'eks-7ebac768-64e1-c53e-564a-96421a8be6ad' has a problem: expected metadata_options.0.instance_metadata_tags to be one of [disabled enabled], got . Examine values at 'LaunchTemplate.MetadataOptions.InstanceMetadataTags'.
we manually fixed the metadataOptions as below
then we executed
pulumi preview -r --diff
and below mentioned is the diffthen we ran
pulumi up
, we observed that pulumi updated thehttpPutResponseHopLimit
to0
, and again we did apulumi preview -r --diff
if was showing the below diffExpected Behavior
httpPutResponseHopLimit
httpProtocolIpv6
andinstanceMetadataTags
fields properlySteps to reproduce
Output of
pulumi about
CLI
Version 3.55.0
Go Version go1.20
Go Compiler gc
Plugins
NAME VERSION
yaml unknown
Host
OS darwin
Version 12.6.2
Arch x86_64
This project is written in yaml
Current Stack: dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::pulumi-import::pulumi:pulumi:Stack::pulumi-import-dev
pulumi:providers:aws urn:pulumi:dev::pulumi-import::pulumi:providers:aws::default
aws:ec2/launchTemplate:LaunchTemplate urn:pulumi:dev::pulumi-import::aws:ec2/launchTemplate:LaunchTemplate::aws-some-launch-template-name
Found no pending operations associated with dev
Backend
Name INM1D5LG7MD6M
URL file://state
User nang
Organizations
No dependencies found
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).
The text was updated successfully, but these errors were encountered: