-
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
feat(efs): transition to archive for FileSystem
#28719
Conversation
Co-authored-by: Kyle Laker <[email protected]>
… to be more consistent with other policies
eae85fd
to
2e1513c
Compare
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.
Hi @longtv2222, this looks great to me except for the one comment below. Thanks for contributing!
/** | ||
* After 365 days of not being accessed. | ||
*/ | ||
AFTER_365_DAYS = 'AFTER_365_DAYS', |
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.
It looks like TransitionToIA
and TransitionToArchive
have the same set of enums excelt that TransitionToArchive
does not allow AFTER_1_DAY
source
Can you add in a synth-time check that throws an error if AFTER_1_DAY
is set for transitionToArchivePolicy
? Plus a unit test :)
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.
It looks like they share the same set of enums to me. The order is a bit off for AFTER_1_DAY
...
Submitted docs feedback for improvement.
From: https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html
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.
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.
🤦🤦🤦
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.
sorry. the order screwed me up and shame on me for expecting the enum list to be in the same chronological order :)
FileSystem
FileSystem
Thank you for contributing! Your pull request will be updated from main 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 main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
This PR adds support for
TransitionToArchive
property forAWS::EFS::FileSystem
Also updated
LifecyclePolicy
to add missing values forTransitionToArchive
andTransitionToIA
Docs
Closes #28720.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license