-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/launch_configuration: introduce user_data_base64 #4257
resource/launch_configuration: introduce user_data_base64 #4257
Conversation
…upport base64-encoded data
|
581b930
to
96a366a
Compare
Hmm. I'm consistently getting testing failures in us-west-2:
|
That's weird. I just tried with
|
Now I get the same error. Those tests depend on details of ami, specially on blocking devices. I'll fix it soon. |
96a366a
to
be0f4f3
Compare
be0f4f3
to
bb46210
Compare
bb46210
to
d569210
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems happy now -- thanks! 🚀
11 tests passed (all tests)
=== RUN TestAccAWSLaunchConfiguration_importBasic
--- PASS: TestAccAWSLaunchConfiguration_importBasic (17.43s)
=== RUN TestAccAWSLaunchConfiguration_withBlockDevices
--- PASS: TestAccAWSLaunchConfiguration_withBlockDevices (18.13s)
=== RUN TestAccAWSLaunchConfiguration_withSpotPrice
--- PASS: TestAccAWSLaunchConfiguration_withSpotPrice (20.87s)
=== RUN TestAccAWSLaunchConfiguration_ebs_noDevice
--- PASS: TestAccAWSLaunchConfiguration_ebs_noDevice (21.16s)
=== RUN TestAccAWSLaunchConfiguration_withVpcClassicLink
--- PASS: TestAccAWSLaunchConfiguration_withVpcClassicLink (22.93s)
=== RUN TestAccAWSLaunchConfiguration_withEncryption
--- PASS: TestAccAWSLaunchConfiguration_withEncryption (27.54s)
=== RUN TestAccAWSLaunchConfiguration_basic
--- PASS: TestAccAWSLaunchConfiguration_basic (33.88s)
=== RUN TestAccAWSLaunchConfiguration_withIAMProfile
--- PASS: TestAccAWSLaunchConfiguration_withIAMProfile (35.36s)
=== RUN TestAccAWSLaunchConfiguration_updateEbsBlockDevices
--- PASS: TestAccAWSLaunchConfiguration_updateEbsBlockDevices (39.05s)
=== RUN TestAccAWSLaunchConfiguration_updateRootBlockDevice
--- PASS: TestAccAWSLaunchConfiguration_updateRootBlockDevice (39.63s)
=== RUN TestAccAWSLaunchConfiguration_userData
--- PASS: TestAccAWSLaunchConfiguration_userData (41.97s)
It is not clear to me why the introduction of a new attribute was needed here. The only issue with #2800 was that the "StateFunc" for "user_data" did double encoding of already Base64 encoded data. To address this issue we could have updated use "StateFunc" for "user_data" to utilize the "userDataHashSum" function. Except for the one issue from #2800 everything up until this pull request handled both base64 and non-base64 encoded data with one attribute. The issue in #4197 is fixed by the PR without even using the new attribute as we actually make the StateFunc change here. |
This has been released in version 1.16.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Agree with @gseyetik , the issue I reported is now fixed in v1.16.0 without actually using the new attribute. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
fix #4197, an issue caused by #2800
As spotted with #4197 (comment), try to borrow logic from
aws_instance
and introduceuser_data_base64
as fix.