-
Notifications
You must be signed in to change notification settings - Fork 4k
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(secretsmanager): RotateSchedule is not disabled when automaticallyAfter is 0 #27497
Conversation
…c rotation of secrets
Duration.days(0) should disable automatic rotation. /**
* Specifies the number of days after the previous rotation before
* Secrets Manager triggers the next automatic rotation.
*
* A value of zero will disable automatic rotation - `Duration.days(0)`.
*
* @default Duration.days(30)
*/
readonly automaticallyAfter?: Duration;
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
I believe that the current behavior is intended (see discussion on issue #27460 (comment)). Using the 'magic' value of 0 on As of now, I do not think this change is necessary. There may still be a case for improving the doc string to be more descriptive of what the actual behavior is. |
OK, I will submit another PR for modifying the doc. |
…e is 0 is wrong (#27570) We discussed that the doc when `automaticallyAfter` for `RotationSchedule` is `Duration.days(0)` is wrong. So I modified the doc. See the issue (#27460) and another PR (#27497 (comment)). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This PR fixes the bug that a RotateSchedule is not disabled when automaticallyAfter is 0.
Closes #27460.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license