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
Duplicate Question to this https://repost.aws/questions/QUtHyfwozYTrq3_5QxXU7Afg/access-denied-when-trying-to-get-objects-uploaded-to-s-3-bucket-via-aws-sdk-using-cloudfront
can you share your bucket policy and make sure that the OIA for cloudfront is configured? Another thing, is make sure about the configuration of the bucket and that you're not using WEB enabled bucket if using OIA, OIA only works with REST requests.