Bucket access by cloudfront

0

Is it possible to access objects from a bucket with get actions through a cloudfront distribution originating from this bucket?

Felipe
asked 10 days ago79 views
2 Answers
3

Hi,

Yes, it's possible to access objects from an S3 bucket with GET actions through a CloudFront distribution that uses the bucket as its origin. CloudFront acts as a content delivery network (CDN) that caches and delivers content from the S3 bucket to end users.

answered 10 days ago
0

The previous answer was deleted as it was misleading.

Is it correct that what you want to do is access S3 using the AWS API (AWS CLI or SDK)?
In that case, you cannot access S3 using AWS API via CloudFront.
CloudFront is a CDN service, so it is a service used to distribute content such as websites.
So you can use it when you want to host and serve static content in S3, but you can't try to access it using the AWS API.

profile picture
EXPERT
answered 10 days ago

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