-
Notifications
You must be signed in to change notification settings - Fork 64
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
Allow specifying an archival policy for AWS buckets #3563
Conversation
Only enables this for openscapes, which is using it as described in https://github.com/2i2c-org/infrastructure/issues/3562.
I have already applied this. |
I did a Terraform will perform the following actions:
# aws_s3_bucket_lifecycle_configuration.user_bucket_expiry["scratch"] will be updated in-place
~ resource "aws_s3_bucket_lifecycle_configuration" "user_bucket_expiry" {
id = "victor-scratch"
# (1 unchanged attribute hidden)
+ rule {
+ id = "archival-storageclass"
+ status = "Enabled"
+ transition {
+ storage_class = "GLACIER_IR"
}
}
# (1 unchanged block hidden)
}
# aws_s3_bucket_lifecycle_configuration.user_bucket_expiry["scratch-staging"] will be updated in-place
~ resource "aws_s3_bucket_lifecycle_configuration" "user_bucket_expiry" {
id = "victor-scratch-staging"
# (1 unchanged attribute hidden)
+ rule {
+ id = "archival-storageclass"
+ status = "Enabled"
+ transition {
+ storage_class = "GLACIER_IR"
}
}
# (1 unchanged block hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy. It seems off that the rule is created and put in a |
@yuvipanda if the final form of this PR will make |
Thanks for the check, @consideRatio. I'm actually going to investigate if that stanza can be just made conditional entirely (instead of using enabled / disabled), so it's a no-op elsewhere. If not, I'll post to make sure other engineers are aware of a no-op change. |
@consideRatio ok, updated so it is a no-op on clusters that don't use this feature. |
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.
Thank you @yuvipanda!
I merged this branch to master locally and tested applying this on 2i2c-aws-us: No changes. Your infrastructure matches the configuration.
.
I'll go for a merge here to ensure we get this in and we don't drop the ball on this - as I did now for a month. Testing to apply this on openscapes led to |
Thank you, @consideRatio! |
Only enables this for openscapes, which is using it as described in 2i2c-org/features#32.
📚 Documentation preview 📚: https://2i2c-pilot-hubs--3563.org.readthedocs.build/en/3563/