Skip to content

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

Description

@BingusCo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions