[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-cloudfront-s3-dotnet-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":49,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Fcloudfront-s3-dotnet-cdk.json","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\u002Fsakthivel-chellapparimanam.json",{"text":15},[16],"cdk deploy","CloudFront to S3 to serve a static site","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"cloudfront-cff-s3-staticsite-dotnet","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-cff-s3-staticsite-dotnet","serverless-patterns\u002Fcloudfront-cff-s3-staticsite-dotnet","src\u002FMdsite\u002FMdsiteStack.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,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,45,"cloudfront","CloudFront",{"x":42,"y":38,"service":43,"label":44},80,"s3","S3 bucket",{"from":46,"to":47,"label":48},"icon1","icon2","",{"headline":50,"bullets":51},"Additional resources",[52,54],{"text":40,"link":53},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudFront\u002Flatest\u002FDeveloperGuide\u002FIntroduction.html",{"text":55,"link":56},"Simple Storage Service - S3","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FWelcome.html","patterns\u002Fcloudfront-s3-dotnet-cdk",{"headline":59,"text":60},"Testing",[61],"You can test the solution by accessing the CloudFront distribution domain using a web browser.","LEIwv6v4iHeEFyy91oOuCc1p8DU_dBW6aKoVnCSXZLo",1778846883804]