cloudfront distribution with several origins


Hi, I have a CloudFront distribution that I want to links to 3 origins (buckets ) and be able to serve content from those buckets using 1 Alternate domain name. Is it possible? and how do I set it up?

asked 2 years ago353 views
1 Answer
Accepted Answer

Of course, it is possible.

You need to define 3 origins and then assign them to proper behaviours using regex to create path patterns.

It means for example

  • -> serve BucketA - pathPattern: /bucketA*
  • -> serve BucketB - pathPattern: /bucketB*
  • -> serve BucketC - pathPattern: Default (*)
profile picture
answered 2 years ago
  • I used the name of a folder in the root of each bucket in the path pattern and it worked. Thanks

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