Add custom header in Cloudfront
We need to pass custom header name from cloudfront. Custom request policy
Click Here Api gateway and cloudfront in the same domain with different path
We need use the behavior and origin concept to build this setup
Click Here Pass query params from cloudfront to api gateway
Pass the query string params from cloudfront to api gateway
Click Here Add cloudfront origin and behavior using AWS-CDK
Like we discussed in last slide to have S3 and api gateway in same domain
Click Here AWS Cloudfront Function
Cloudfront function is great resource for modifying origin and viewer request and response
Click Here