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
gefragt vor 2 Jahren417 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
  • I used the name of a folder in the root of each bucket in the path pattern and it worked. Thanks

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen