[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-s3-cloudfront-oai":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Fs3-cloudfront-oai.json","Amazon CloudFront to Amazon S3 with OAI",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.",[13],"content\u002Fcontributors\u002Ffaraz-haider.json",{"text":15},[16,17],"npm install","cdk deploy","Create a CloudFront distribution to S3 using OAI.","json","AWS CDK",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"s3-cloudfront-oai-cdk-python","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-cloudfront-oai-cdk-python","serverless-patterns\u002Fs3-cloudfront-oai-cdk-python","s3_cloudfront_oai_cdk.py",{"headline":28,"text":29},"How it works",[30],"This python CDK Construct deploys an S3 bucket that is encrypted via S3 managed encryption as well as configured to host a website. The CloudFront distributions is configured to serve the website contents hosted in the S3 bucket over the CloudFront distribution network. The CloudFront Domain URL is obfuscated and restricted to users who access the CloudFront Orign Access Identity (OAI.).","Python","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"cloudfront","CloudFront",{"x":41,"y":37,"service":42,"label":43},80,"s3","S3",{"from":45,"to":46,"label":47},"icon1","icon2","",{"headline":49,"bullets":50},"Additional resources",[51,54],{"text":52,"link":53},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":55,"link":56},"Blog Series: Building scalable serverless applications with Amazon S3 and AWS Lambda.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-scalable-serverless-applications-with-amazon-s3-and-aws-lambda\u002F","patterns\u002Fs3-cloudfront-oai",{"headline":59,"text":60},"Testing",[61],"See the GitHub repo for detailed testing instructions.","dtB8ET0yibqaHD7qd666aXKrHpZtxaPPeqB4F7o2Ly0",1778846887134]