Yahya Uddin
Yahya Uddin

Reputation: 28861

Make multiple public files back to private on Amazon S3

Currently I have a lot of files on Amazon S3 which are public.

I want to make all files in this bucket no longer public.

How do I do this?

On the UI, when you select multiple folders and click "More", there is an option to make them public, but none to make them un-public.

The only method I found is by manually going on to each file and changing each individual permission.

Upvotes: 0

Views: 333

Answers (1)

John Hanley
John Hanley

Reputation: 81356

I would recommend a third party software product for this. CloudBerry supports this ability. Otherwise you can write a script to process each file one by one. In Python this is easy.

CloudBerry Explorer for S3

AWS SDK for Python (Boto3)

Upvotes: 1

Related Questions