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/aws_egress_only_internet_gateway: Add tags argument #11568

Merged
merged 3 commits into from
Apr 8, 2020
Merged

r/aws_egress_only_internet_gateway: Add tags argument #11568

merged 3 commits into from
Apr 8, 2020

Conversation

stefansundin
Copy link
Contributor

@stefansundin stefansundin commented Jan 12, 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 #11563. I will rebase this branch when #11501 is merged.

Release note for CHANGELOG:

resource/aws_egress_only_internet_gateway: Add `tags` argument

Output from acceptance testing:

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

@stefansundin stefansundin requested a review from a team January 12, 2020 01:08
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XXL Managed by automation to categorize the size of a PR. labels Jan 12, 2020
@bflad
Copy link
Contributor

bflad commented Jan 17, 2020

@stefansundin this is ready for rebase

@ghost ghost added documentation Introduces or discusses updates to documentation. size/M Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed size/XXL Managed by automation to categorize the size of a PR. labels Jan 17, 2020
@stefansundin
Copy link
Contributor Author

@bflad I just rebased it. I haven't run the test again since I am on the wrong computer currently. Let me know if anything needs to be changed. Thanks!

@ewbankkit
Copy link
Contributor

@stefansundin Can you please migrate to use the keyvaluetags package - #10688.
Thanks.

@stefansundin
Copy link
Contributor Author

@ewbankkit Done. I wasn't sure whether or not to keep .IgnoreAws() (the issue doesn't even mention/explain what it does, but I think it just ignores all tags with the aws: prefix), but I think the answer is Yes so I kept it.

Tests are passing:

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

@DrFaust92
Copy link
Collaborator

Hey @stefansundin, i would recommend to refactor tests to use this example

@bflad bflad 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 Apr 8, 2020
@bflad bflad self-assigned this Apr 8, 2020
@bflad bflad added this to the v2.57.0 milestone Apr 8, 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.

Thanks so much for this, @stefansundin 🚀 Overall it was in good shape, just fixed up the CI errors for the missing testAccCheckTags function and removed the deprecated d.SetPartial() usage.

Output from acceptance testing:

--- PASS: TestAccAWSEgressOnlyInternetGateway_basic (30.74s)
--- PASS: TestAccAWSEgressOnlyInternetGateway_Tags (70.04s)

@bflad bflad merged commit 6ea3364 into hashicorp:master Apr 8, 2020
bflad added a commit that referenced this pull request Apr 8, 2020
@ghost
Copy link

ghost commented Apr 10, 2020

This has been released in version 2.57.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 May 8, 2020

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 and limited conversation to collaborators May 8, 2020
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/M 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.

Egress-only internet gateway resource tagging
4 participants