Access a S3 folder specific to particular user authenticated using Cognito and Cloudfront

0

Hi,

I saw a previous question posted here which is similar to what i am trying to do except my S3 bucket has a Cloudfront distribution in front of it and I want to use the Cloudfront distribution URL in my application for users to retrieve objects from the S3 bucket. I want to have 1 bucket for all the users but want to ensure that each user will have access to only their folder's objects. How do I do so using Cognito and Cloudfront?

Would I need to use Cloudfront signed URLs?

1개 답변
1

Hello.

I think the answer to the question at this URL is close to your situation.
https://repost.aws/questions/QUV2b7c7ftQhOLrM1O0BT9XA/using-cognito-and-cloudfront-to-control-access-to-user-files-on-s3

I think the flow will be to authenticate using Lambda@Edge on CloudFront and access S3 using the credentials of the Cognito ID pool.
https://github.com/aws-samples/cloudfront-authorization-at-edge

profile picture
전문가
답변함 3달 전

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

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

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

관련 콘텐츠