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
Recursively change storage class on bucket #2056
Comments
You can do it by running this command:
And then if you check the contents, the class should be
I am not sure storage class is something we would want to define in the config file. It is pretty specific. It would need to be something more general like setting default parameters. Let us know if that helps. |
Thanks Kyle, I hope that goes into the man page / documentation as an example. |
Sorry for excavating a such old issue. Just to warn other users who will use a command. The method you supplied will duplicate objects in case if bucket versioning is enabled (hence double the price). Just curious - where i can submit a request to reduce S3 to S2 (as it is not simple)? |
WIll this change of storage class charge for data transfer? |
I'm interested in too |
It will not. It just copies/moves the file(s) in its current storage class to the new storage class. Any upload still goes to Standard at first like any S3 upload. |
How does one recursively change all objects on a bucket to
STANDARD_IA
withaws s3
?http://docs.aws.amazon.com/AmazonS3/latest/dev/ChgStoClsOfObj.html
Bonus: A way of defining a default storage class in
~/.aws/config
The text was updated successfully, but these errors were encountered: