[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-cloudfront-lambda-edge-s3-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":53,"s3URL":6,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Fcloudfront-lambda-edge-s3-cdk.json","Amazon CloudFront to Amazon S3 with AWS Lambda@Edge",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fthomas-moore.json","content\u002Fcontributors\u002Fjosh-hart.json",{"text":14},[15],"cdk deploy","Create a CloudFront Distribution to upload files to an S3 bucket. Uses Lambda@Edge for authentication.","json","AWS CDK",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-lambda-edge-s3-cdk","serverless-patterns\u002Fcloudfront-lambda-edge-s3-cdk","cloudfront-lambda-edge-s3-cdk","cdk\u002Flib\u002Famazon-s3-upload-api-patterns-stack.ts",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern creates an Amazon CloudFront distribution that can be used to upload files to an Amazon S3 bucket.","It uses a Lambda@Edge function to verify a JSON Web Token (JWT) issued by Amazon Cognito.","This allows authorized uploads of large objects to S3 via CloudFront without providing public access to the S3 bucket.","TypeScript","300",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"cloudfront","Amazon CloudFront",{"x":37,"y":37,"service":41,"label":42},"lambda","Lambda@Edge (Auth)",{"x":44,"y":37,"service":45,"label":46},80,"s3","Amazon S3",{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":50},"icon3",{"bullets":54},[55,57,60,63],{"text":18,"link":56},"https:\u002F\u002Faws.amazon.com\u002Fcdk\u002F",{"text":58,"link":59},"Lambda@Edge - Docs","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-edge.html",{"text":61,"link":62},"Amazon CloudFront - Docs","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudFront\u002Flatest\u002FDeveloperGuide\u002FIntroduction.html",{"text":64,"link":65},"Amazon Cognito - Docs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcognito\u002Flatest\u002Fdeveloperguide\u002Fwhat-is-amazon-cognito.html","patterns\u002Fcloudfront-lambda-edge-s3-cdk",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","z5NMNHKPd14RkWXrtULI4jpwSeL1Os1guTBjsn2Egbc",1781951704087]