Existing cache_key_parameters become uncached when new parameters are added #25736
Labels
bug
Addresses a defect in current functionality.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
Terraform CLI and Terraform AWS Provider Version
(also broken on aws provider v3.x)
Affected Resource(s)
aws_api_gateway_*
Terraform Configuration Files
Expected Behavior
When you add a new cache key parameter and a corresponding method request parameter (of the same name) to
main.tf
, it should be added to the `URL Query String Parameters' list, checked as 'Cached'. All other parameters should remain in-tact.Actual Behavior
When you add the cache key parameter and method request parameter, it adds it, but it also unchecks the 'Cached' checkbox on all previous parameters.
Steps to Reproduce
terraform apply
main.tf
, add a new test parameter toapi_method_request_parameters
andapi_integration_request_parameters
terraform apply
terraform apply
againOutput
First apply (when it breaks):
Second apply (when it fixes):
References
Here's a video of the issue...
Kapture.2022-07-07.at.21.10.03.mp4
The text was updated successfully, but these errors were encountered: