How can I create a CloudFront origin using a S3 directory bucket (express one zone)?

0

When using the console to create an origin I noticed my directory bucket's weren't being listed as an option in the Origin domain > Amazon S3 drop down menu which I assume means directory buckets aren't supported. Can anyone confirm? Is this on the roadmap?

2 Answers
1
Accepted Answer

Hello.

The following documentation describes features that directory buckets do not support.
Unfortunately, as of February 2025, directory buckets cannot host static sites.
In other words, I don't think it can be set as a custom origin.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-differences.html#s3-express-differences-unsupported-features

profile picture
EXPERT
answered 3 months ago
profile picture
EXPERT
reviewed 3 months ago
profile picture
EXPERT
reviewed 3 months ago
-2

I apologize, but there seems to be a misunderstanding in your question. Currently, CloudFront does not support using S3 directory buckets (S3 Express One Zone) as origins directly.

S3 directory buckets are a relatively new feature designed for performance-critical applications requiring single-digit millisecond latency within a specific Availability Zone. They use the S3 Express One Zone storage class, which is optimized for high availability within a single Availability Zone.

The fact that you don't see your directory buckets listed as an option in the Origin domain > Amazon S3 drop-down menu when creating a CloudFront distribution confirms that this feature is not currently supported.

As for whether this is on the roadmap, AWS does not typically disclose future plans for service integrations. However, given that S3 directory buckets are designed for specific use cases with very low latency requirements, it's unclear if they would be integrated with CloudFront in the same way as standard S3 buckets.

If you need to use CloudFront with your directory bucket content, you might consider setting up a custom origin instead. This would involve:

  1. Configuring your directory bucket to be accessible via a custom endpoint.
  2. Setting up the CloudFront distribution with a custom origin, using the endpoint of your directory bucket.
  3. Implementing appropriate security measures to control access between CloudFront and your directory bucket.

Keep in mind that this approach may not provide the same level of integration or performance benefits as using standard S3 buckets with CloudFront. If your use case allows, you might want to consider using a standard S3 bucket as the origin for your CloudFront distribution to take full advantage of the native integration between these services.
Sources
Creating directory buckets in an Availability Zone - Amazon Simple Storage Service
Cloudfront with other provider S3 | AWS re:Post

profile picture
answered 3 months ago
profile picture
EXPERT
reviewed 3 months ago
  • If I use it as a custom origin is it possible to setup something similar to Origin Access Control (OAC)?

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