[Bug]: Error: updating API Gateway Integration: operation error API Gateway: UpdateIntegration, https response error StatusCode: 400, RequestID: ffd09554-7291-4bbe-963e-359592f90c38, BadRequestException: Invalid mapping expression specified: Validation Result: warnings : [], errors : [Invalid mapping expression parameter specified: method.request.querystring.ucid] #39801
Labels
bug
Addresses a defect in current functionality.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
Terraform Core Version
v1.9.8
AWS Provider Version
registry.terraform.io/hashicorp/aws v5.72.1
Affected Resource(s)
module.api_gateway_resources_module.aws_api_gateway_integration.api_gateway_integration: Modifying... [id=agi-oihadyzjnf-79r2xs-ANY]
Expected Behavior
I was expected the stack to remove the parameters from the method and integration resources.
Actual Behavior
Instead it is removing from method and failing to remove from integration resource causing a failure. But if I run the same apply command immediately, its executing properly as parameter and method id already removed.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
You can create an aws api reaource and have a proxy method integration with utmquery string parameters. Once parameters are added from TF you can try to remove one of the parameters from TF code then you will get hit with this error. I have shared the complete block of method and integration resources.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: