Remove encryption from all s3 objects using CLI

Viewed 2341

I am looking at s3api and trying to remove encryption on all my S3 objects. Looks like there is no easy way to remove from CLI. From the console I can do select few (multiple) files but it is tedious.

Suggestions please.. thank you.

1 Answers

Firstly, you need to remove default S3 encryption on your bucket.

Then, you can use this AWS CLI command that will copy all objects and remove encryption:

aws s3 cp s3://BUCKET_NAME/ s3://BUCKET_NAME/ --recursive

Related