You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error message feels like a perennial issue for aws_api_gateway_deployment. I want to deploy an API Gateway REST API with OpenAPI Spec. I've followed the official example and advice as closely as possible, and read through previous reports (11344 and official reply), but I still encounter error Error creating API Gateway Deployment: BadRequestException: No integration defined for method with the following setup. This is not a production app (yet), so I can freely destroy and (re-)apply, but hasn't helped yet.
I also gave it a try with a depends_on block in the deployment, but it made no difference.
Versions
Terraform v1.0.8
hashicorp/aws v3.62.0. <-- fwiw, I also gave v2.x.x a go and same result
...
module.topics_useast1.module.api_gateway.aws_api_gateway_rest_api.rest_api: Creating...
module.topics_useast1.module.api_gateway.aws_api_gateway_rest_api.rest_api: Creation complete after 3s [id=pdtajs9c1m]
module.topics_useast1.module.api_gateway.aws_lambda_permission.apig_to_lambda: Creating...
module.topics_useast1.module.api_gateway.aws_api_gateway_deployment.deployment: Creating...
module.topics_useast1.module.api_gateway.aws_lambda_permission.apig_to_lambda: Creation complete after 1s [id=AllowExecutionFromAPIGateway]
╷
│ Error: Error creating API Gateway Deployment: BadRequestException: No integration defined for method
│
│ with module.topics_useast1.module.api_gateway.aws_api_gateway_deployment.deployment,
│ on ../../../modules/api-gateway/main.tf line 16, in resource "aws_api_gateway_deployment""deployment":
│ 16: resource "aws_api_gateway_deployment""deployment" {
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
This error message feels like a perennial issue for
aws_api_gateway_deployment
. I want to deploy an API Gateway REST API with OpenAPI Spec. I've followed the official example and advice as closely as possible, and read through previous reports (11344 and official reply), but I still encounter errorError creating API Gateway Deployment: BadRequestException: No integration defined for method
with the following setup. This is not a production app (yet), so I can freely destroy and (re-)apply, but hasn't helped yet.I also gave it a try with a
depends_on
block in the deployment, but it made no difference.Versions
modules/api-gateway/main.tf
Error Output
@bflad am I taking crazy pills?
The text was updated successfully, but these errors were encountered: