By using AWS re:Post, you agree to the Terms of Use
/Access denied when trying to GET objects uploaded to s3 bucket via aws sdk using cloudfront/

Access denied when trying to GET objects uploaded to s3 bucket via aws sdk using cloudfront

0

Using client-s3 sdk signed URLs, i was able to PUT and DELETE objects in my s3 bucket. But when trying to access those same objects using a GET request via cloudfront, s3 denies me access (Access Denied) to the objects. On the permissions section of the bucket, i set the bucket policy to allow GET requests from my cloudfront distribution. I know it works because when i upload objects via the s3 console, i can use cloudfront signed URLs to GET the objects from s3, that works. But once i programmatically use the client-s3 to upload the object, i am unable to GET it using my cloudfront distribution

1 Answers
0

Could it be the ACL for the objects in the bucket? For example, was the

--acl bucket-owner-full-control
answered 7 months ago
  • ACLs are disabled for my bucket. I am using bucket policies alone to access objects in the bucket

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions