- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
If i am able to understand the question right you want to transition the bucket to S3 intelligent tiering , I am not sure wether you can automate this or not. Amazon S3 has a global namespace. (i.e. No two S3 buckets can have the same name) so i am quite sure that this cannot be automated though i might be wrong But you can follow the link for the transition process.https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-intelligent-tiering.html
The API to apply a lifecycle on configuration is "PutBucketLifecycleConfiguration, and it is applied on an individual bucket. S3 doesn't have a feature where you can apply a lifecycle configuration on multiple buckets at a time. This is however be achieved on the client end, where you can create a script which first gives you a list of all the buckets in your AWS account, then filter it for a common prefix. After that, you simple run the above API in a loop for the filtered list.
https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 10 Monaten
I also read this somewhere that S3 Buckets only support a single lifecycle configuration. Declaring multiple aws_s3_bucket_lifecycle_configuration resources to the same S3 Bucket will cause a perpetual difference in configuration.