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

[Bug]: aws_api_gateway_rest_api doesn't handle LimitExceededException #37605

Open
PAKalucki opened this issue May 20, 2024 · 1 comment
Open
Labels
bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service.

Comments

@PAKalucki
Copy link

Terraform Core Version

1.8.3

AWS Provider Version

5.50.0

Affected Resource(s)

aws_api_gateway_rest_api

Expected Behavior

Terraform to fail on getting exception from AWS and report the message.

Actual Behavior

Terraform runs in retry loop until timeout without reporting the exception.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_api_gateway_rest_api" "this" {
name = "test-api"
endpoint_configuration {
types = ["REGIONAL"]
}
}

Steps to Reproduce

Create aws_api_gateway_rest_api with resources above the AWS quota limit.

Debug Output

2024-05-20T14:04:45.815+0200 [DEBUG] provider.terraform-provider-aws_v5.50.0_x5: HTTP Response Received: http.response.header.x_amzn_errortype=LimitExceededException rpc.method=PutRestApi rpc.service="API Gateway" tf_rpc=ApplyResourceChange http.response.header.content_type=application/json http.response.header.x_amz_apigw_id=YEZeJJdpoAMEbnA= http.response.header.x_amzn_requestid=b3d1a789-0038-4a91-bb54-9da7be2ef2f6 http.status_code=429 tf_req_id=45dd0dd4-b932-523e-ffc9-afb7caf84bf8 aws.region=us-east-1
  http.response.body=
  | {"message":"Maximum number of Resources for this API has been reached.  Please contact AWS if you need additional Resources.","retryAfterSeconds":null}
   http.duration=6063 http.response.header.date="Mon, 20 May 2024 12:04:47 GMT" rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_resource_type=aws_api_gateway_rest_api http.response_content_length=152 tf_mux_provider="*schema.GRPCProviderServer" @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.53/logging/tf_logger.go:45 @module=aws timestamp="2024-05-20T14:04:45.815+0200"
aws_api_gateway_rest_api.this: Still modifying... [id=dfnzajd9nj, 3m50s elapsed]

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@PAKalucki PAKalucki added the bug Addresses a defect in current functionality. label May 20, 2024
@github-actions github-actions bot added the service/apigateway Issues and PRs that pertain to the apigateway service. label May 20, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 20, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service.
Projects
None yet
Development

No branches or pull requests

2 participants