Skip to content
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

added metadata_options for aws_launch_config #14637

Merged
merged 6 commits into from
Dec 15, 2020

Conversation

jaysiyani
Copy link
Contributor

@jaysiyani jaysiyani commented Aug 13, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #14621

Release note for CHANGELOG:

data-source/aws_launch_config: Add metadata_options attribute
resource/aws_launch_template: Add metadata_options configuration block (support IMDSv2)

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLaunchConfiguration_metadataOptions'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLaunchConfiguration_metadataOptions -timeout 120m
=== RUN   TestAccAWSLaunchConfiguration_metadataOptions
=== PAUSE TestAccAWSLaunchConfiguration_metadataOptions
=== CONT  TestAccAWSLaunchConfiguration_metadataOptions
--- PASS: TestAccAWSLaunchConfiguration_metadataOptions (14.95s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       15.007s

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccLaunchConfigurationDataSource_metadataOptions'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccLaunchConfigurationDataSource_metadataOptions -timeout 120m
=== RUN   TestAccLaunchConfigurationDataSource_metadataOptions
=== PAUSE TestAccLaunchConfigurationDataSource_metadataOptions
=== CONT  TestAccLaunchConfigurationDataSource_metadataOptions
--- PASS: TestAccLaunchConfigurationDataSource_metadataOptions (13.93s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       13.978s

...

@jaysiyani jaysiyani requested a review from a team August 13, 2020 18:53
@ghost ghost added size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/autoscaling Issues and PRs that pertain to the autoscaling service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 13, 2020
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Aug 14, 2020
@jaysiyani jaysiyani changed the title added metadata_options for aws_launch_config (WIP) added metadata_options for aws_launch_config Aug 24, 2020
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Sep 3, 2020
@willfarrell
Copy link

For those using Security Hub, AWS Foundational Security Best Practices v1.0.0 EC2.8 checks for this. Would be great to have this security feature merged.

@jaysiyani
Copy link
Contributor Author

@breathingdust Is there anything else needed in this PR for it to be merged?

@dvanteru
Copy link

@breathingdust For security compliance we have to implement this change, can this be merged sooner than later please? Thank you very much

@breathingdust
Copy link
Member

Hi @jaysiyani thanks for the contribution for what looks like a popular enhancement! The FAQ covers how we decide what gets merged and when. We appreciate your patience while we work through our backlog!

@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Nov 24, 2020
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Dec 11, 2020
@bflad bflad self-assigned this Dec 11, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jaysiyani 👋 Thank you for submitting this. Overall its looking pretty good, just needs resource documentation and a test configuration fix, then should be good to get in. Please reach out if you have any questions or do not have time to make the changes. 👍

aws/resource_aws_launch_configuration_test.go Outdated Show resolved Hide resolved
aws/resource_aws_launch_configuration.go Show resolved Hide resolved
@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Dec 11, 2020
@jaysiyani jaysiyani requested a review from a team as a code owner December 14, 2020 10:46
@jaysiyani
Copy link
Contributor Author

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLaunchConfiguration_metadataOptions'    
==> Checking that code complies with gofmt requirements...        
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLaunchConfiguration_metadataOptions -timeout 120m
=== RUN   TestAccAWSLaunchConfiguration_metadataOptions
=== PAUSE TestAccAWSLaunchConfiguration_metadataOptions
=== CONT  TestAccAWSLaunchConfiguration_metadataOptions
--- PASS: TestAccAWSLaunchConfiguration_metadataOptions (30.53s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       30.590s

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccLaunchConfigurationDataSource_metadataOptions'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccLaunchConfigurationDataSource_metadataOptions -timeout 120m
=== RUN   TestAccLaunchConfigurationDataSource_metadataOptions
=== PAUSE TestAccLaunchConfigurationDataSource_metadataOptions
=== CONT  TestAccLaunchConfigurationDataSource_metadataOptions
--- PASS: TestAccLaunchConfigurationDataSource_metadataOptions (27.39s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       27.446s

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label Dec 14, 2020
@jaysiyani jaysiyani force-pushed the add_metadata_options_launch_config branch from 1e4e465 to 1991d26 Compare December 14, 2020 11:17
@apolegoshko
Copy link

apolegoshko commented Dec 14, 2020

@bflad when it's planned to be merged ? Thanks in advance

@bflad bflad self-requested a review December 15, 2020 00:43
@bflad bflad added this to the v3.22.0 milestone Dec 15, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you, @jaysiyani 🚀

Output from acceptance testing:

--- PASS: TestAccAWSLaunchConfiguration_basic (73.44s)
--- PASS: TestAccAWSLaunchConfiguration_ebs_noDevice (52.92s)
--- PASS: TestAccAWSLaunchConfiguration_encryptedRootBlockDevice (52.90s)
--- PASS: TestAccAWSLaunchConfiguration_metadataOptions (55.79s)
--- PASS: TestAccAWSLaunchConfiguration_RootBlockDevice_AmiDisappears (373.76s)
--- PASS: TestAccAWSLaunchConfiguration_RootBlockDevice_VolumeSize (76.39s)
--- PASS: TestAccAWSLaunchConfiguration_updateEbsBlockDevices (74.31s)
--- PASS: TestAccAWSLaunchConfiguration_userData (75.41s)
--- PASS: TestAccAWSLaunchConfiguration_withBlockDevices (55.41s)
--- PASS: TestAccAWSLaunchConfiguration_withEncryption (55.17s)
--- PASS: TestAccAWSLaunchConfiguration_withIAMProfile (60.63s)
--- PASS: TestAccAWSLaunchConfiguration_withInstanceStoreAMI (57.10s)
--- PASS: TestAccAWSLaunchConfiguration_withSpotPrice (55.55s)

--- PASS: TestAccAWSLaunchConfigurationDataSource_basic (53.40s)
--- PASS: TestAccAWSLaunchConfigurationDataSource_ebsNoDevice (52.04s)
--- PASS: TestAccAWSLaunchConfigurationDataSource_securityGroups (49.80s)
--- PASS: TestAccLaunchConfigurationDataSource_metadataOptions (54.83s)

@bflad bflad merged commit 57641cd into hashicorp:master Dec 15, 2020
bflad added a commit that referenced this pull request Dec 15, 2020
@ghost
Copy link

ghost commented Dec 18, 2020

This has been released in version 3.22.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Jan 14, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/autoscaling Issues and PRs that pertain to the autoscaling service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants