-
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): automatic rotation cannot be disabled #18906
fix(secretsmanager): automatic rotation cannot be disabled #18906
Conversation
@skinny85 just bumping this! |
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.
@AdamVD thanks for the ping, this slipped under my radar!
Before I dive into the details, what do you think about, instead of adding a new property, adding a "magic" value for automaticallyAfter
(0 comes to mind immediately), and that will mean "disable rotation"?
@skinny85 No problem, I figured that was all and that's why I bumped! I actually proposed that as one of the two options in the issue #18749. Basically my argument for the solution you see implemented is that it is better from a UX perspective rather than using a "magic" value of zero. The issue creator agreed, but I'll follow your wisdom on what the better solution is out of the two. Just let me know! |
I actually feel like I guess I don't know for a fact that |
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.
I'm inclined to agree that using automaticallyAfter: Duration.days(0)
is the preferred route. I'm not a big fan of using mutually exclusive optional parameters.
@AdamVD are you still working on this PR? |
@skinny85 Thanks for the bump. I'll try to switch the implementation by early next week. |
Pull request has been modified.
From a UX perspective maybe a Duration.never() could be implemented so that the user does not have to google if it’s 0 or 9999 :-) |
@Jacco Interesting idea! I also have the feeling that a duration of zero isn't a great UX, but we are limited on options. I think a never option could make sense with something like @skinny85 I'll leave it to you to decide! |
I really like the ideas here! Between @AdamVD I'll let you make the final call - propose something in the PR! Also, to be 100% transparent, I'm no longer with AWS, so I can't merge this PR anymore - but I'd be happy to help in whatever way I can! |
Duration.eternity ;-) |
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). |
fixes aws#18749 Adds a `manualRotation` prop to `RotationSchedule` in order to leave `automaticallyAfterDays` unset on the underlying Cfn resource. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
fixes #18749
Adds a
manualRotation
prop toRotationSchedule
in order to leaveautomaticallyAfterDays
unset on the underlying Cfn resource.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license