You can switch between different applications sharing the same URL in CloudFront. The use case I have a web app served using CloudFront from S3. I need a mechanism to seamlessly replace this app with another one, served from a different S3 bucket, but with the same URL.
Source: [Dev.to](https://dev.to/aws-builders/cloudfront-functions-dynamic-switching-between-origins-33f9)