-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(apigateway): cannot remove first api key from usage plan #12505
Conversation
This is caused by a [commit introduced] back in Nov 2019. The original change tried to be overly ambitious in not triggering a resource replacement on customers who already had a single key usage plan configured. This results in stack update failures for a usage plan with multiple keys, when the **first** key is removed. Removal of the first key re-adjusts the logical ids of all the keys in a way that makes the update look like the first key is changing and a subsequent key is being removed. The fix is to simply not special case the first key. Resource replacement of Usage Plan Key resource should not create any impact on running applications. fixes #11876 [commit introduced]: 142bd0e
So basically if you remove the first key then second key gets renamed? ouch |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
This is caused by a [commit introduced] back in Nov 2019. The original change tried to be overly ambitious in not triggering a resource replacement on customers who already had a single key usage plan configured. This results in stack update failures for a usage plan with multiple keys, when the **first** key is removed. Removal of the first key re-adjusts the logical ids of all the keys in a way that makes the update look like the first key is changing and a subsequent key is being removed. The fix is to simply not special case the first key. Resource replacement of Usage Plan Key resource should not create any impact on running applications. fixes aws#11876 [commit introduced]: aws@142bd0e ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This is caused by a commit introduced back in Nov 2019.
The original change tried to be overly ambitious in not triggering a
resource replacement on customers who already had a single key usage
plan configured.
This results in stack update failures for a usage plan with multiple
keys, when the first key is removed. Removal of the first key
re-adjusts the logical ids of all the keys in a way that makes the
update look like the first key is changing and a subsequent key is being
removed.
The fix is to simply not special case the first key.
Resource replacement of Usage Plan Key resource should not create any
impact on running applications.
fixes #11876
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license