How can I connect multiple s3 static apps to one Cloudfront and direct traffic to the different s3 based on path



I have three static apps hosted in three separate S3 buckets, and I want to connect them to a single CloudFront distribution. My goal is to achieve the following URL structure: Default app Second static app Third static app

Constraints: I want to avoid using EC2 due to cost considerations, and each organization should access all three apps under one subdomain.

Attempts: I've tried using CloudFront behaviors to route based on subdirectories, but that didn't work. Additionally, I attempted to use Lambda@Edge with origin behavior, but it also failed to meet my requirements.

Question: How can I properly configure CloudFront to achieve the desired URL structure with multiple S3 buckets and one subdomain for different organizations?

asked 5 months ago272 views
1 Answer


How are CloudFront's behaviors configured?
For example, if the path settings are as follows, wouldn't it be possible to access another S3?
In the case of the following path, the setting will be to access the S3 bucket when accessing "" etc.*

I think the following StackOverflow answer will be helpful.

profile picture
answered 5 months ago
profile pictureAWS
reviewed 5 months 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