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_ec2_carrier_gateway: New resource. #16252

Merged

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Nov 17, 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

Relates #14518.

Release note for CHANGELOG:

resource/aws_ec2_carrier_gateway: New resource

Output from acceptance testing:

Account not enabled for Wavelength:
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2CarrierGateway_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2CarrierGateway_ -timeout 120m
=== RUN   TestAccAWSEc2CarrierGateway_basic
=== PAUSE TestAccAWSEc2CarrierGateway_basic
=== RUN   TestAccAWSEc2CarrierGateway_disappears
=== PAUSE TestAccAWSEc2CarrierGateway_disappears
=== RUN   TestAccAWSEc2CarrierGateway_Tags
=== PAUSE TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_basic
=== CONT  TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_disappears
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_disappears (1.33s)
=== CONT  TestAccAWSEc2CarrierGateway_basic
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_basic (1.37s)
=== CONT  TestAccAWSEc2CarrierGateway_Tags
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_Tags (1.37s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1.419s
Account enabled for Wavelength:
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2CarrierGateway_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2CarrierGateway_ -timeout 120m
=== RUN   TestAccAWSEc2CarrierGateway_basic
=== PAUSE TestAccAWSEc2CarrierGateway_basic
=== RUN   TestAccAWSEc2CarrierGateway_disappears
=== PAUSE TestAccAWSEc2CarrierGateway_disappears
=== RUN   TestAccAWSEc2CarrierGateway_Tags
=== PAUSE TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_basic
=== CONT  TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_disappears
--- PASS: TestAccAWSEc2CarrierGateway_disappears (22.26s)
--- PASS: TestAccAWSEc2CarrierGateway_basic (29.77s)
--- PASS: TestAccAWSEc2CarrierGateway_Tags (71.47s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	71.533s

@ewbankkit ewbankkit requested a review from a team as a code owner November 17, 2020 19:04
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 17, 2020
@ewbankkit
Copy link
Contributor Author

ewbankkit commented Nov 17, 2020

TODO: Add test sweeper.

$ TEST=./aws SWEEP=us-west-2 SWEEPARGS=-sweep-run=aws_ec2_carrier_gateway make sweep
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./aws -v -sweep=us-west-2 -sweep-run=aws_ec2_carrier_gateway -timeout 60m
2020/11/19 15:42:33 [DEBUG] Running Sweepers for region (us-west-2):
2020/11/19 15:42:33 [DEBUG] Running Sweeper (aws_ec2_carrier_gateway) in region (us-west-2)
2020/11/19 15:42:33 [INFO] AWS Auth provider used: "EnvProvider"
2020/11/19 15:42:33 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/11/19 15:42:34 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020/11/19 15:42:35 Sweeper Tests ran successfully:
	- aws_ec2_carrier_gateway
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1.166s

@ewbankkit ewbankkit force-pushed the f-aws_ec2_carrier_gateway-resource branch 2 times, most recently from 85d38aa to b999b1d Compare November 20, 2020 14:18
@ewbankkit ewbankkit mentioned this pull request Nov 20, 2020
7 tasks
@ewbankkit ewbankkit force-pushed the f-aws_ec2_carrier_gateway-resource branch from b999b1d to a56557b Compare November 30, 2020 13:52
@ewbankkit ewbankkit changed the title [WIP] r/aws_ec2_carrier_gateway: New resource. r/aws_ec2_carrier_gateway: New resource. Nov 30, 2020
@bflad bflad added the new-resource Introduces a new resource. label Dec 3, 2020
@bflad bflad self-assigned this Dec 3, 2020
Acceptance test output:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2CarrierGateway_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2CarrierGateway_ -timeout 120m
=== RUN   TestAccAWSEc2CarrierGateway_basic
=== PAUSE TestAccAWSEc2CarrierGateway_basic
=== RUN   TestAccAWSEc2CarrierGateway_disappears
=== PAUSE TestAccAWSEc2CarrierGateway_disappears
=== RUN   TestAccAWSEc2CarrierGateway_Tags
=== PAUSE TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_basic
=== CONT  TestAccAWSEc2CarrierGateway_Tags
=== CONT  TestAccAWSEc2CarrierGateway_disappears
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_disappears (1.33s)
=== CONT  TestAccAWSEc2CarrierGateway_basic
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_basic (1.37s)
=== CONT  TestAccAWSEc2CarrierGateway_Tags
    resource_aws_ec2_carrier_gateway_test.go:195: skipping since no Wavelength Zones are available
--- SKIP: TestAccAWSEc2CarrierGateway_Tags (1.37s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1.419s
@ewbankkit ewbankkit force-pushed the f-aws_ec2_carrier_gateway-resource branch from a56557b to bcee37a Compare December 7, 2020 18:57
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Dec 7, 2020
@bflad bflad added this to the v3.21.0 milestone Dec 9, 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 great, thank you @ewbankkit 🚀

Output from acceptance testing in AWS Commercial (Wavelength preview enabled):

--- PASS: TestAccAWSEc2CarrierGateway_disappears (23.47s)
--- PASS: TestAccAWSEc2CarrierGateway_basic (31.14s)
--- PASS: TestAccAWSEc2CarrierGateway_Tags (72.24s)

Output from acceptance testing in AWS GovCloud (US):

--- SKIP: TestAccAWSEc2CarrierGateway_basic (1.95s)
--- SKIP: TestAccAWSEc2CarrierGateway_Tags (1.97s)
--- SKIP: TestAccAWSEc2CarrierGateway_disappears (1.98s)

@bflad bflad merged commit d9a1617 into hashicorp:master Dec 9, 2020
bflad added a commit that referenced this pull request Dec 9, 2020
@ewbankkit ewbankkit deleted the f-aws_ec2_carrier_gateway-resource branch December 9, 2020 19:46
@ghost
Copy link

ghost commented Dec 11, 2020

This has been released in version 3.21.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 9, 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 9, 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. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. size/XL 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.

3 participants