[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-waf-cloudfront-s3-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":55,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fwaf-cloudfront-s3-cdk.json","WAF to Amazon CloudFront to Amazon S3",null,{"headline":8,"text":9},"Cleanup",[10,11],"In the source folder, from the command line enter:","\u003Ccode>cdk destroy\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fvikramsinha-patil.json",{"text":15},[16],"cdk deploy CloudFrontS3WafStack","AWA WAF to CloudFront to S3","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"cloudfront-waf-s3-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-waf-s3-cdk","serverless-patterns\u002Fcloudfront-waf-s3-cdk","src\u002FCdkStack.cs",{"headline":27,"text":28},"How it works",[29,30,31],"This sample project demonstrates how can you deploy a MKDOCS site to S3 with CloudFront.","CloudFront executes a function when receiving a request from the viewer and appends index.html to each request for proper routing.","S3 hosts the HTML files generated from the MKDOCS.",".NET","200",{},{"icon1":36,"icon2":41,"icon3":45,"line1":49,"line2":53},{"x":37,"y":38,"service":39,"label":40},20,45,"waf","AWS WWAF",{"x":42,"y":38,"service":43,"label":44},50,"cloudfront","CloudFront",{"x":46,"y":38,"service":47,"label":48},80,"s3","S3 bucket",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,60],{"text":44,"link":59},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudFront\u002Flatest\u002FDeveloperGuide\u002FIntroduction.html",{"text":61,"link":62},"Simple Storage Service - S3","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FWelcome.html","patterns\u002Fwaf-cloudfront-s3-cdk",{"headline":65,"text":66},"Testing",[67],"You can test the solution by accessing the CloudFront distribution domain using a web browser.","xtppLm_yIVSI07jNFIty8WldIbq3Cl-xR0qo56FVVos",1779273340223]