[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-cloudfront-lambda-url-iam-cdk-ts":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fcloudfront-lambda-url-iam-cdk-ts.json","Amazon Cloudfront to AWS Lambda URLs with IAM Auth",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsamuel-durand.json",{"text":13},[14],"cdk deploy","Configure Amazon CloudFront to point to an AWS Lambda function via a Lambda URL with IAM authentication","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-lambda-url-iam-cdk-ts","serverless-patterns\u002Fcloudfront-lambda-url-cdk-ts","cloudfront-lambda-url-iam-cdk-ts","cdk\u002Flib\u002Fcdk-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"An Amazon CloudFront distribution is created that forwards requests to the domain name of the deployed AWS Lambda function URL. Amazon CloudFront also caches responses from the Lambda function.","The Lambda URL is protected by IAM authentication via CloudFront and Lambda@Edge.","Amazon CloudFront also allows for custom domain names, Lambda@Edge to authenticate with Cognito, as well as AWS Web Application Firewall (WAF) and AWS Shield Advanced to protect your endpoint from attacks","TypeScript","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":45,"line2":48},{"x":35,"y":36,"service":37,"label":38},20,50,"cloudfront","Amazon CloudFront",{"x":36,"y":36,"service":40,"label":41},"lambda","Lambda@Edge",{"x":43,"y":36,"service":40,"label":44},80,"AWS Lambda Function URLs",{"from":46,"to":47},"icon1","icon2",{"from":47,"to":49,"label":50},"icon3","IAM Authorization",{"bullets":52},[53,56],{"text":54,"link":55},"Using Amazon CloudFront with AWS Lambda as origin to accelerate your web applications","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fnetworking-and-content-delivery\u002Fusing-amazon-cloudfront-with-aws-lambda-as-origin-to-accelerate-your-web-applications\u002F",{"text":57,"link":58},"Securing Lambda Function URLs using Amazon Cognito, Amazon CloudFront and AWS WAF","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fsecuring-lambda-function-urls-using-amazon-cognito-amazon-cloudfront-and-aws-waf\u002F","patterns\u002Fcloudfront-lambda-url-iam-cdk-ts",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","aF6kaKK17rAtUQ9ENebIcflSWJvR9sOKTVFHOA8l0mY",1778846883762]