Skip to content

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

@BingusCo

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.

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