A simple stack that demonstrates using a CloudFront Function to provide basic authorisation. While CloudFront Functions can't make HTTP or service calls, they're enough for us to validate basic auth or JWT.
cdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template