- Newest
- Most votes
- Most comments
This is not likely possible using three separate CF distributions because you need to add your hostname(s) as an alias on its respective distribution. So you have a distro for a.example.com (lets call it distro A), and that has an alias for a.example.com. Your distro for b.example.com (distro B) will have an alias for b.example.com. But you don't want a third CF distribution for c.example.com (distro C), you want c.example.com to split 50/50 to distro A/B. The challenge is you can only have your c.example.com alias on one distro at a time, you cannot have it on both distro A and distro B.
An alternative might be to use a single record in Route 53 and a single CF distro, and then handle your A/B switching as part of the distro.
Apoligies, that was a typo. I meant to say you cannot have an alias on both distributions. I fixed my original answer above.
For more information on using these aliases, see the restrictions section in the documentation here.
You can achieve a similar behavior using a single distribution and Lambda@Edge functions. Check this sample for an implementation of the feature: https://github.com/aws-samples/ab-testing-at-edge
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
I didnt catch this part.