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

New resource: aws_apigatewayv2_domain_name #9391

Merged

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jul 17, 2019

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Another resource for #7004.

Release note for CHANGELOG:

FEATURES:

* New Resource: aws_apigatewayv2_domain_name

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGateway2DomainName_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAWSAPIGateway2DomainName_ -timeout 120m
=== RUN   TestAccAWSAPIGateway2DomainName_basic
=== PAUSE TestAccAWSAPIGateway2DomainName_basic
=== RUN   TestAccAWSAPIGateway2DomainName_Tags
=== PAUSE TestAccAWSAPIGateway2DomainName_Tags
=== RUN   TestAccAWSAPIGateway2DomainName_UpdateCertificate
=== PAUSE TestAccAWSAPIGateway2DomainName_UpdateCertificate
=== CONT  TestAccAWSAPIGateway2DomainName_basic
=== CONT  TestAccAWSAPIGateway2DomainName_UpdateCertificate
=== CONT  TestAccAWSAPIGateway2DomainName_Tags
--- PASS: TestAccAWSAPIGateway2DomainName_basic (24.39s)
--- PASS: TestAccAWSAPIGateway2DomainName_Tags (109.44s)
--- PASS: TestAccAWSAPIGateway2DomainName_UpdateCertificate (462.71s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	462.743s

Currently based on #8842, will need to rebase once that PR is merged.

@ewbankkit ewbankkit requested a review from a team July 17, 2019 19:23
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/apigateway Issues and PRs that pertain to the apigateway service. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jul 17, 2019
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch 3 times, most recently from 698e3f1 to 1bd8a4f Compare July 19, 2019 21:04
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. labels Jul 19, 2019
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch from 1bd8a4f to 1499fe1 Compare July 22, 2019 11:52
@ewbankkit ewbankkit changed the title [WIP] New resource: aws_api_gateway_v2_domain_name New resource: aws_api_gateway_v2_domain_name Jul 22, 2019
@ewbankkit
Copy link
Contributor Author

Test sweeper:

$ SWEEP=us-east-2 SWEEPARGS=-sweep-run=aws_api_gateway_v2_domain_name make sweep
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./... -v -sweep=us-east-2 -sweep-run=aws_api_gateway_v2_domain_name
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
2019/07/23 14:14:18 [DEBUG] Running Sweepers for region (us-east-2):
2019/07/23 14:14:18 [INFO] Building AWS auth structure
2019/07/23 14:14:18 [INFO] Setting AWS metadata API timeout to 100ms
2019/07/23 14:14:19 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2019/07/23 14:14:19 [INFO] AWS Auth provider used: "EnvProvider"
2019/07/23 14:14:19 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2019/07/23 14:14:19 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2019/07/23 14:14:20 [INFO] Deleting API Gateway v2 domain name: ewbankkit.example.com
2019/07/23 14:14:26 Sweeper Tests ran:
	- aws_api_gateway_v2_domain_name
ok  	github.com/terraform-providers/terraform-provider-aws/aws	7.720s

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch from 098a15f to 9e087e0 Compare July 26, 2019 19:50
@ewbankkit
Copy link
Contributor Author

Rebased to fix merge conflict.

@aeschright aeschright added the new-resource Introduces a new resource. label Aug 19, 2019
@ewbankkit

This comment has been minimized.

@ewbankkit ewbankkit changed the title New resource: aws_api_gateway_v2_domain_name New resource: aws_apigatewayv2_domain_name Mar 13, 2020
@ewbankkit
Copy link
Contributor Author

After merge of #8842, incorporate all the feedback:

  • Migrate to Terraform provider SDK
  • Change resource name to aws_apigatewayv2_blah; Rename source files
  • Remove sidebar_current from documentation
  • Add subcategory: "API Gateway v2 (WebSocket and HTTP APIs)" to documentation
  • Change function names to ApiGatewayV2
  • Add _disappears acceptance test
  • Use multierror in any test sweeper

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch from 29f6106 to 8ec0afc Compare March 13, 2020 22:06
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/XXL Managed by automation to categorize the size of a PR. labels Mar 13, 2020
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch 2 times, most recently from 211554d to cc9aac0 Compare March 13, 2020 22:19
@ewbankkit
Copy link
Contributor Author

Renamed resource to aws_apigatewayv2_domain_name.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGatewayV2DomainName_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2DomainName_ -timeout 120m
=== RUN   TestAccAWSAPIGatewayV2DomainName_basic
=== PAUSE TestAccAWSAPIGatewayV2DomainName_basic
=== RUN   TestAccAWSAPIGatewayV2DomainName_disappears
=== PAUSE TestAccAWSAPIGatewayV2DomainName_disappears
=== RUN   TestAccAWSAPIGatewayV2DomainName_Tags
=== PAUSE TestAccAWSAPIGatewayV2DomainName_Tags
=== RUN   TestAccAWSAPIGatewayV2DomainName_UpdateCertificate
=== PAUSE TestAccAWSAPIGatewayV2DomainName_UpdateCertificate
=== CONT  TestAccAWSAPIGatewayV2DomainName_basic
=== CONT  TestAccAWSAPIGatewayV2DomainName_UpdateCertificate
=== CONT  TestAccAWSAPIGatewayV2DomainName_Tags
=== CONT  TestAccAWSAPIGatewayV2DomainName_disappears
--- PASS: TestAccAWSAPIGatewayV2DomainName_disappears (26.83s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_UpdateCertificate (147.36s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_Tags (185.33s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_basic (251.60s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	252.396s

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_domain_name branch from ca570eb to f5c038d Compare March 16, 2020 20:52
@ewbankkit
Copy link
Contributor Author

This is now ready for review.

@bflad bflad removed the service/apigateway Issues and PRs that pertain to the apigateway service. label Apr 15, 2020
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

--- PASS: TestAccAWSAPIGatewayV2DomainName_disappears (112.07s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_basic (178.03s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_Tags (255.62s)
--- PASS: TestAccAWSAPIGatewayV2DomainName_UpdateCertificate (370.67s)

@gdavison gdavison added this to the v2.58.0 milestone Apr 16, 2020
gdavison added a commit that referenced this pull request Apr 16, 2020
@gdavison gdavison merged commit c58bfb1 into hashicorp:master Apr 16, 2020
@ghost
Copy link

ghost commented Apr 17, 2020

This has been released in version 2.58.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!

@ewbankkit ewbankkit deleted the issue-7004.aws_api_gateway_v2_domain_name branch April 17, 2020 11:42
@ghost
Copy link

ghost commented May 17, 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 17, 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. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 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.

4 participants