[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-cloudfront-functions-s3":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":35,"level":36,"meta":37,"patternArch":38,"resources":57,"s3URL":6,"services":63,"stem":64,"testing":65,"videoId":29,"__hash__":69},"patterns\u002Fpatterns\u002Fcloudfront-functions-s3.json","Amazon CloudFront with Amazon CloudFront Functions to Amazon S3",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. In the source folder, from the command line enter:","\u003Ccode>cdk destroy\u003C\u002Fcode>","2. See additional notes in the repo.",[14],"content\u002Fcontributors\u002Fcorneliu-croitoru.json",{"text":16},[17],"cdk deploy","CloudFront with CloudFront Functions to S3","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"cloudfront-cff-s3-cdk-python","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-cff-s3-cdk-python","serverless-patterns\u002Fcloudfront-cff-s3-cdk-python","cloudfront_cff_s3_cdk_python\u002Fcloudfront_cff_s3_cdk_python_stack.py",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33,34],"This pattern deploys an Amazon Cloudfront distribution, an Amazon Cloudfront Function and a Amazon S3 Bucket and demonstrates how to implement an A\u002FB testing solution.","Using Cloudfront Functions, you are dynamically changing the URI to display either the old home page or new home page randomly.","TypeScript","200",{},{"icon1":39,"icon2":44,"icon3":48,"line1":52,"line2":55},{"x":40,"y":41,"service":42,"label":43},20,45,"cloudfront","Amazon CloudFront",{"x":45,"y":41,"service":46,"label":47},50,"cf-functions","CloudFront Functions",{"x":49,"y":41,"service":50,"label":51},80,"s3","Amazon S3",{"from":53,"to":54,"label":29},"icon1","icon2",{"from":54,"to":56,"label":29},"icon3",{"headline":58,"bullets":59},"Additional resources",[60],{"text":61,"link":62},"CDK Patterns","https:\u002F\u002Fcdkpatterns.com\u002F",{"from":42,"to":50},"patterns\u002Fcloudfront-functions-s3",{"headline":66,"text":67},"Testing",[68],"See the GitHub repo for testing instructions.","W5S9WFsocHVr68PSxgO5yeqKp4n5rRZwMSI_61c-AiA",1778846883721]