1 Answer
- Newest
- Most votes
- Most comments
0
Hi
When you execute the command aws s3 cp s3://YOUR_BUCKET_NAME/ s3://YOUR_BUCKET_NAME/ --recursive --storage-class STANDARD, it essentially creates new copies of all objects in your bucket within the same bucket itself.
List Information of the Bucket:
aws s3 ls s3://YOUR_BUCKET_NAME/ --recursive --human-readable
**
Use AWS Copy Object:**
aws s3 copy-object \ --source-bucket YOUR_BUCKET_NAME \ --source-key <object_key> \ --destination-bucket YOUR_BUCKET_NAME \ --destination-key <object_key> \ --storage-class STANDARD
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 9 months ago
then what is the way to revert back to standard
Corrected my answer
How to use lifecycle policy in this case. Could you please explain in detail?