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

API Gateway v2 Integration doesn't work with MOCK Integration Type #17289

Closed
andy-mccombs-rft opened this issue Jan 26, 2021 · 6 comments · Fixed by #17362
Closed

API Gateway v2 Integration doesn't work with MOCK Integration Type #17289

andy-mccombs-rft opened this issue Jan 26, 2021 · 6 comments · Fixed by #17362
Assignees
Labels
documentation Introduces or discusses updates to documentation. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service.
Milestone

Comments

@andy-mccombs-rft
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

API Gateway v2 Integration doesn't work with MOCK Integration Type as indicated in Terraform's documentation. I'm assuming that this isn't implemented yet. That's why I opened a Feature Request and not an issue.

New or Affected Resource(s)

AWS API Gateway v2

  • aws_apigatewayv2_integration

Terraform Configuration

AWS Provider: 3.25.0

resource "aws_apigatewayv2_integration" "example" {
  api_id           = aws_apigatewayv2_api.apigatewayv2_api.id
  integration_type = "MOCK"
}

Error
Error: error creating API Gateway v2 integration: BadRequestException: Currently, an API with a protocol type of HTTP may only be associated with proxy integrations (AWS_PROXY, HTTP_PROXY)

References

Same code found here

@andy-mccombs-rft andy-mccombs-rft added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 26, 2021
@ghost ghost added the service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. label Jan 26, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 26, 2021
@ewbankkit
Copy link
Contributor

@andy-mccombs-rft Thanks for raising this issue.
Indeed this is a limitation of the underlying AWS API.
I will update the documentation to reflect this.

@ewbankkit ewbankkit added documentation Introduces or discusses updates to documentation. and removed enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Jan 27, 2021
@ewbankkit ewbankkit self-assigned this Jan 27, 2021
@andy-mccombs-rft
Copy link
Author

Thanks for sending the AWS API doc. I totally missed that. Thanks for the help.

@ghost
Copy link

ghost commented Feb 5, 2021

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

@andy-mccombs-rft
Copy link
Author

This was not resolved with version 3.27.0 of the Terraform AWS provider. I still get the error message

Error: error creating API Gateway v2 integration: BadRequestException: Currently, an API with a protocol type of HTTP may only be associated with proxy integrations (AWS_PROXY, HTTP_PROXY)

@ewbankkit
Copy link
Contributor

ewbankkit commented Feb 5, 2021

@andy-mccombs-rft The underlying AWS API does not accept the MOCK value for HTTP APIs. The documentation was updated to reflect this.

@ghost
Copy link

ghost commented Mar 6, 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 Mar 6, 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. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service.
Projects
None yet
2 participants