[{"data":1,"prerenderedAt":59},["ShallowReactive",2],{"pattern-amplify-codecommit":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":46,"s3URL":6,"services":6,"stem":54,"testing":55,"videoId":6,"__hash__":58},"patterns\u002Fpatterns\u002Famplify-codecommit.json","AWS CodeCommit to AWS Amplify Web App",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fmaya-flores.json",{"text":13},[14],"cdk deploy","Create a CodeCommit repository and deploy an Amplify web application from a local folder.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Famplify-codecommit","serverless-patterns\u002Famplify-codecommit","amplify-codecommit","lib\u002Famplify-webapp-construct.js",{"headline":25,"text":26},"How it works",[27,28,29],"This sample pattern demonstrates how to deploy an AWS Amplify web application from a local folder or repository using an AWS CodeCommit repository. This pattern is useful for quickly deploying and hosting a web application on AWS from your local machine.","This pattern first creates a CodeCommit repository from the web application code in the local folder 'local-webapp-code'. Then it creates an Amplify app using the CodeCommit repository as the source repository. Finally, it creates a custom resource that creates an Amplify job to build and deploy the Amplify app.","Without this custom resource, your Amplify app will not build or deploy. If your web application communicates with a backend, the pattern demonstrates how to pass an API endpoint from the CDK to the Amplify app as an environment variable.","Node.js","300",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"codecommit","AWS CodeCommit",{"x":40,"y":36,"service":41,"label":42},80,"amplify","AWS Amplify",{"from":44,"to":45},"icon1","icon2",{"bullets":47},[48,51],{"text":49,"link":50},"What is AWS Amplify Hosting?","https:\u002F\u002Fdocs.aws.amazon.com\u002Famplify\u002Flatest\u002Fuserguide\u002Fwelcome.html",{"text":52,"link":53},"Continuously deploy a modern AWS Amplify web application from an AWS CodeCommit repository","https:\u002F\u002Fdocs.aws.amazon.com\u002Fprescriptive-guidance\u002Flatest\u002Fpatterns\u002Fcontinuously-deploy-a-modern-aws-amplify-web-application-from-an-aws-codecommit-repository.html","patterns\u002Famplify-codecommit",{"text":56},[57],"See the Github repo for detailed testing instructions.","3rVhceBex79g5KB-rFU7svXw42w6tSKsgWzbE2tHjr4",1779273331544]