When uploading a file to S3, can you give everyone permission to read/download?

Asked 1 years ago, Updated 1 years ago, 63 views

I gave everyone to the AWS S3 bucket as open/download, but when I upload a file to that bucket with the aws s3 cp command, the default permission goes up so that only I can see it.

Is there a way to give everyone permission to see the S3 file when uploading it?

aws s3

2022-09-21 18:24

1 Answers

If you are giving read permission to all files in that bucket, we recommend adding a policy to that bucket.

Go to http://awspolicygen.s3.amazonaws.com/policygen.html and select "GetObject" in Actions, type arn:aws:s3:::yourbucketname/* in ARN, and press the Add Statement button.

Next, click the Add bucket policy button in Permissions in Bucket Properties.

If you insert and save the policy you created in the first step, all the files in that bucket will behave as public.


2022-09-21 18:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.