aws-samples / aws-samples/amazon-cloudfront-functions
Feature Request: Provide a sample CloudFront function example for changing custom origins
- Dominant language
- JavaScript
- Stars
- 533
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I'm submitting this feedback on behalf of an AWS Premium Support customer who referenced https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example_cloudfront_functions_select_origin_based_on_country_section.html for using CloudFront Function's new origin modification feature. It wasn't clear that the `"originAccessControlConfig": {...}` structure should be removed when using custom origins.
There is more information in https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/helper-functions-origin-modification.html that addresses this confusion.
It may be helpful to also have a function example that demonstrates rerouting the origin for custom origins.
Contributor guide
Assessment
This issue has not been assessed yet.