Sharing file with URL link in S3

0

I have worked with S3 for a couple of years, and was familiar with the old buckets...and how to share files publicly. However recently when I created a new bucket, I have not been able to share a file to the public the way I had done it in the past. When setting up the bucket and file, I have unchecked the "block public access" however it is not allowing the URL link to work...it says access denied. Can someone please explain what else I need to do in the file/bucket to allow this?

2개 답변
1

Hi! There have been a few updates to S3 recently that could explain the behavior you're seeing.

  • Ensure Block Public Access Settings are off at the account level and the bucket level.
  • If the object is already stored, you may need to update the object ACL either through console or CLI (aws s3api put-object-acl --bucket <bucket-name> --key <object-key> --acl public-read.
  • Optionally, you could use a bucket policy as well.

Lastly - a friendly reminder to be careful with S3 public settings and public permissions as it's recommended to have this locked down and secured unless absolutely necessary to have files public. Then, if files need to be public, be careful with adjacent buckets in the account, even folders/etc within the same bucket, and even only giving out the necessary permissions to read the object (and not describe metadata).

jsonc
답변함 2년 전
  • I have the public access settings turned off but it is still not granting access to the public. Can you explain more on the ACL settings to allow public access please?

0

For easy S3 file/folder sharing and collaboration with external users using advanced SSO, please check NirvaShare - https://nirvashare.com

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠