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

r/launch_template: add support for network-interface tag specification #18033

Closed
wants to merge 1 commit into from

Conversation

xabinapal
Copy link

@xabinapal xabinapal commented Mar 10, 2021

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 #18029

Add support for network-interface resource types in launch_template tag specification blocks, as AWS now supports it during creation; even though documentation seems to be outdated both in AWS User Guide and in AWS API Reference.

Previously:

$ make testacc TESTARGS='-run=TestAccAWSLaunchTemplate_data'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLaunchTemplate_data -timeout 120m
=== RUN   TestAccAWSLaunchTemplate_data
=== PAUSE TestAccAWSLaunchTemplate_data
=== CONT  TestAccAWSLaunchTemplate_data
    resource_aws_launch_template_test.go:381: Step 1/2 error: Error running pre-apply refresh: exit status 1

        Error: expected tag_specifications.0.resource_type to be one of [instance volume spot-instances-request elastic-gpu], got network-interface

          on terraform_plugin_test.tf line 89, in resource "aws_launch_template" "test":
          57:     resource_type = "network-interface"


--- FAIL: TestAccAWSLaunchTemplate_data (7.50s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	9.279s
FAIL
make: *** [testacc] Error 1

Output from acceptance testing:

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

@xabinapal xabinapal requested a review from a team as a code owner March 10, 2021 21:26
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 10, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 10, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @xabinapal 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@Aym3nTN
Copy link

Aym3nTN commented May 26, 2021

Any updates on this PR?

@xabinapal
Copy link
Author

I haven't received any feedback from the maintainers to know if something is required to merge this...

@Aym3nTN
Copy link

Aym3nTN commented May 27, 2021

@hashicorp-cloud could someone look this PR please?

@alexmnyc
Copy link

bump. can we get this merged plz?

@gordonbondon
Copy link
Contributor

Ooops, sorry, I did not see your PR before submitting my fix #20409 , but it's already merged and released.

@breathingdust breathingdust added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 4, 2021
@DrFaust92
Copy link
Collaborator

Closed via #20409

@DrFaust92 DrFaust92 closed this Sep 4, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2022
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/ec2 Issues and PRs that pertain to the ec2 service. size/XS 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.

Support network-interface in launch template tag_specifications
6 participants