Add a way to mock the Cloudfront GeoLocation Headers
Open
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
Assessment
This issue has not been assessed yet.