cloudfront distribution with several origins

0

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?

mm-tech
asked 2 years ago408 views
1 Answer
1
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

  • example.com/bucketA -> serve BucketA - pathPattern: /bucketA*
  • example.com/bucketB -> serve BucketB - pathPattern: /bucketB*
  • example.com -> serve BucketC - pathPattern: Default (*)
profile picture
MG
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