Open otavioribeiromedeiros opened 2 years ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @otavioribeiromedeiros 👋 Thank you for taking the time to raise this! Are you able to supply full debug logs (redacted as needed) as well? If so, that'll make it a bit easier to track down what's happening here.
I am also having exact issues
I got the same base level error message when creating an Authorizer.
My issue was I was trying to use an incorrect rest_api_id
.
There is nothing in the error logs that assisted me.
I just happened to get lucky and spot the issue upon checking my aws_api_gateway_authorizer
resource for the 50th time.
Long story short, if you are having this issue double check your aws_api_gateway_authorizer
resource in your terraform code.
Make sure each variable is correct because the error handling for this resource may not be that helpful.
I usually hate recommending such workarounds but sequentially depending on the previous resource with a depends_on
will solve the race condition and the apply
will go through.
Terraform Core Version
1.2.7
AWS Provider Version
4.32.0
Affected Resource(s)
aws_api_gateway_authorizer
Expected Behavior
AWS API Gateway authorizer is created successfully.
Actual Behavior
Validate Response apigateway/CreateAuthorizer failed, attempt 6/25, error ConflictException: Unable to complete operation due to concurrent modification. Please try again later.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Define the resource:
Execute any of the following commands:
terraform apply -parallelism=1
orterraform apply -parallelism=1
Debug Output
Simultaneous try...
Panic Output
No response
Important Factoids
Apply with
-parallelism=1
doesn't work either.References
No response
Would you like to implement a fix?
No response