aws-samples / aws-samples/amazon-cloudfront-functions

Feature Request: Provide a sample CloudFront function example for changing custom origins

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.