[apigateway] does not detect addPropertyOverride changes for deployment hash #9086
Labels
@aws-cdk/aws-apigateway
Related to Amazon API Gateway
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p2
Using
addPropertyOverride
on API properties, such as auth, fails to result in new API Gateway Deployments – likely due to these changes not being picked up by the hashing mechanism.Reproduction Steps
LambdaRestApi
withdeploy
set totrue
(the default)addPropertyOverride
– for example in the manner suggested here: defaultMethodOptions should be selectively applied to CORS OPTIONS method #8615 (comment)Other
If this is deemed out of scope for
addPropertyOverride
modifications (which may make sense if they're too hard to use in the hashing mechanism), then at least the documentation should be updated to mention that you may need to manually take action for scenarios like auto-deployments.Also when
addPropertyOverride
is mentioned as a potential solution to a problem in the issue tracker / forum, it would be good to add this caveat (and any other apis that may be affected by usingaddPropertyOverride
).This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: