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_integration #8949

Merged

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jun 11, 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_integration

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGateway2Integration_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAWSAPIGateway2Integration_ -timeout 120m
=== RUN   TestAccAWSAPIGateway2Integration_basic
=== PAUSE TestAccAWSAPIGateway2Integration_basic
=== RUN   TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== PAUSE TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== RUN   TestAccAWSAPIGateway2Integration_Lambda
=== PAUSE TestAccAWSAPIGateway2Integration_Lambda
=== RUN   TestAccAWSAPIGateway2Integration_VpcLink
=== PAUSE TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_basic
=== CONT  TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== CONT  TestAccAWSAPIGateway2Integration_Lambda
--- PASS: TestAccAWSAPIGateway2Integration_basic (23.83s)
--- PASS: TestAccAWSAPIGateway2Integration_IntegrationTypeHttp (39.78s)
--- PASS: TestAccAWSAPIGateway2Integration_Lambda (41.64s)
--- PASS: TestAccAWSAPIGateway2Integration_VpcLink (708.94s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	709.004s

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

@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/apigateway Issues and PRs that pertain to the apigateway service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Jun 11, 2019
@aeschright aeschright requested a review from a team June 28, 2019 18:13
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from 8b4e87b to 47051ec Compare July 1, 2019 17:05
@ghost ghost added the service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. label Jul 1, 2019
@ewbankkit
Copy link
Contributor Author

Rebased to track #8842 (comment).

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from 47051ec to ea8964b Compare July 1, 2019 19:15
@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 1, 2019
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch 2 times, most recently from 12cc8b9 to b467ff4 Compare July 2, 2019 17:08
@ewbankkit ewbankkit changed the title [WIP] New resource: aws_api_gateway_v2_integration New resource: aws_api_gateway_v2_integration Jul 2, 2019
@ewbankkit
Copy link
Contributor Author

ewbankkit commented Jul 26, 2019

Rebased to fix merge conflict.
Acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGateway2Integration_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAWSAPIGateway2Integration_ -timeout 120m
=== RUN   TestAccAWSAPIGateway2Integration_basic
=== PAUSE TestAccAWSAPIGateway2Integration_basic
=== RUN   TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== PAUSE TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== RUN   TestAccAWSAPIGateway2Integration_Lambda
=== PAUSE TestAccAWSAPIGateway2Integration_Lambda
=== RUN   TestAccAWSAPIGateway2Integration_VpcLink
=== PAUSE TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_basic
=== CONT  TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_Lambda
=== CONT  TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
--- PASS: TestAccAWSAPIGateway2Integration_basic (21.63s)
--- PASS: TestAccAWSAPIGateway2Integration_IntegrationTypeHttp (34.45s)
--- PASS: TestAccAWSAPIGateway2Integration_Lambda (38.25s)
--- PASS: TestAccAWSAPIGateway2Integration_VpcLink (722.33s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	722.386s

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from b467ff4 to ba2a6a1 Compare July 26, 2019 20:11
@ewbankkit
Copy link
Contributor Author

Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGateway2Integration_' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAWSAPIGateway2Integration_ -timeout 120m
=== RUN   TestAccAWSAPIGateway2Integration_basic
=== PAUSE TestAccAWSAPIGateway2Integration_basic
=== RUN   TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== PAUSE TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
=== RUN   TestAccAWSAPIGateway2Integration_Lambda
=== PAUSE TestAccAWSAPIGateway2Integration_Lambda
=== RUN   TestAccAWSAPIGateway2Integration_VpcLink
=== PAUSE TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_basic
=== CONT  TestAccAWSAPIGateway2Integration_VpcLink
=== CONT  TestAccAWSAPIGateway2Integration_Lambda
=== CONT  TestAccAWSAPIGateway2Integration_IntegrationTypeHttp
--- PASS: TestAccAWSAPIGateway2Integration_basic (22.25s)
--- PASS: TestAccAWSAPIGateway2Integration_IntegrationTypeHttp (34.91s)
--- PASS: TestAccAWSAPIGateway2Integration_Lambda (38.44s)
--- PASS: TestAccAWSAPIGateway2Integration_VpcLink (734.10s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	734.131s

@aeschright aeschright added the new-resource Introduces a new resource. label Aug 19, 2019
@ewbankkit ewbankkit changed the title New resource: aws_api_gateway_v2_integration New resource: aws_apigatewayv2_integration Mar 13, 2020
@ewbankkit
Copy link
Contributor Author

ewbankkit commented Mar 13, 2020

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_integration branch from 1dac073 to 16168dd Compare March 13, 2020 14:27
@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_integration branch from 16168dd to 04312b8 Compare March 13, 2020 14:32
@ewbankkit
Copy link
Contributor Author

Renamed resource to aws_apigatewayv2_integration.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGatewayV2Integration_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Integration_ -timeout 120m
=== RUN   TestAccAWSAPIGatewayV2Integration_basic
=== PAUSE TestAccAWSAPIGatewayV2Integration_basic
=== RUN   TestAccAWSAPIGatewayV2Integration_disappears
=== PAUSE TestAccAWSAPIGatewayV2Integration_disappears
=== RUN   TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp
=== PAUSE TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp
=== RUN   TestAccAWSAPIGatewayV2Integration_Lambda
=== PAUSE TestAccAWSAPIGatewayV2Integration_Lambda
=== RUN   TestAccAWSAPIGatewayV2Integration_VpcLink
=== PAUSE TestAccAWSAPIGatewayV2Integration_VpcLink
=== CONT  TestAccAWSAPIGatewayV2Integration_basic
=== CONT  TestAccAWSAPIGatewayV2Integration_Lambda
=== CONT  TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp
=== CONT  TestAccAWSAPIGatewayV2Integration_disappears
=== CONT  TestAccAWSAPIGatewayV2Integration_VpcLink
--- PASS: TestAccAWSAPIGatewayV2Integration_disappears (23.85s)
--- PASS: TestAccAWSAPIGatewayV2Integration_basic (27.84s)
--- PASS: TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp (43.88s)
--- PASS: TestAccAWSAPIGatewayV2Integration_Lambda (52.86s)
--- PASS: TestAccAWSAPIGatewayV2Integration_VpcLink (657.77s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	657.827s

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from 3bd0388 to 7c2c09b Compare March 13, 2020 15:48
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from 7c2c09b to bd6a4f0 Compare March 13, 2020 20:59
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from c2b18c5 to 96b7e85 Compare March 16, 2020 22:20
@ewbankkit
Copy link
Contributor Author

This is now ready for review.

@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from 96b7e85 to cba8251 Compare March 19, 2020 17:19
@gdavison gdavison self-assigned this Mar 24, 2020
@ewbankkit ewbankkit force-pushed the issue-7004.aws_api_gateway_v2_integration branch from cba8251 to 0c754c5 Compare March 24, 2020 21:51
@ewbankkit
Copy link
Contributor Author

Rebased after merge of #12400.

Re-ran affected acceptance test:

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

@ewbankkit
Copy link
Contributor Author

I will add a new aws_apigatewayv2_vpc_link as a separate PR and include additional aws_apigatewayv2_integration acceptance tests for private integrations for HTTP APIs then.

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: TestAccAWSAPIGatewayV2Integration_disappears (10.11s)
--- PASS: TestAccAWSAPIGatewayV2Integration_IntegrationTypeHttp (16.91s)
--- PASS: TestAccAWSAPIGatewayV2Integration_basic (28.73s)
--- PASS: TestAccAWSAPIGatewayV2Integration_Lambda (34.52s)
--- PASS: TestAccAWSAPIGatewayV2Integration_VpcLink (657.35s)

@gdavison gdavison added this to the v2.57.0 milestone Apr 7, 2020
@gdavison gdavison merged commit a5a8275 into hashicorp:master Apr 8, 2020
gdavison added a commit that referenced this pull request Apr 8, 2020
@ewbankkit ewbankkit deleted the issue-7004.aws_api_gateway_v2_integration branch April 9, 2020 10:04
@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 9, 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 9, 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/apigateway Issues and PRs that pertain to the apigateway service. 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.

3 participants