rhythmic-branch-12845
07/29/2022, 9:34 AMpulumi import
) and then pasting the code into my file, and when I try to run pulumi up
again using the same code, Pulumi claims that there is a diff in the user data when the strings are the same?
Type Name Plan Info
pulumi:pulumi:Stack test-dev
~ └─ aws:ec2:Instance api update [diff: ~userData]
Resources:
~ 1 to update
1 unchanged
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::test::pulumi:pulumi:Stack::test-dev]
~ aws:ec2/instance:Instance: (update) 🔒
[id=i-0a1fd51cf5f02a8b4]
[urn=urn:pulumi:dev::test::aws:ec2/instance:Instance::api]
[provider=urn:pulumi:dev::test::pulumi:providers:aws::default_5_10_0::bdc3a497-cbed-47f9-98ef-99acbed1740f]
~ userData: "85de5fdec580fbc6617d9b2bfbddbae346a45ef4" => "85de5fdec580fbc6617d9b2bfbddbae346a45ef4"
little-cartoon-10569
07/31/2022, 9:53 PMpulumi up
. The user data will be fully generated and you'll be able to tell if the user data really has change, and you're also protected from accidentally destroying the instance in the case where the user data has changed.