aws / aws/aws-sam-cli

Add a way to mock the Cloudfront GeoLocation Headers

Open
#3,026 2 comments 1 reaction 0 assignees View on GitHub
maintainer/need-followup type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement

SAM CLI to be able to output the cloudfront geolocation headers for local requests, as if we are building logic that is based around using those headers we can't test them locally.

### Proposal

That we add either a template parameter(s) or a option on sam local start-api invocation to mock those headers with values provided.

### Additional Details

https://aws.amazon.com/about-aws/whats-new/2020/07/cloudfront-geolocation-headers/

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.