[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-canary-deployment-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":14,"deploy":16,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":35,"level":36,"meta":37,"patternArch":38,"resources":51,"s3URL":6,"services":60,"stem":61,"testing":62,"videoId":30,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-canary-deployment-cdk.json","Amazon API Gateway canary deployment",null,{"headline":8,"text":9},"Cleanup",[10,11,12,13],"1. Delete the Canary Deployment stack:","\u003Ccode>cdk destroy CanaryDeploymentStack\u003C\u002Fcode>","2. Delete the Serverless application stack.","\u003Ccode>cdk destroy MyServerlessApplicationStack\u003C\u002Fcode>",[15],"content\u002Fcontributors\u002Fmitch-andrews.json",{"text":17},[18],"cdk deploy MyServerlessApplicationStack","Create a serverless app using API Gateway and Lambda. Then create an API Gateway canary deployment","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"apigw-canary-deployment-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-canary-deployment-cdk","serverless-patterns\u002Fapigw-canary-deployment-cdk","app.py",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34],"This pattern shows how to create an API Gateway canary deployment with a Lambda function behind an API Gateway REST API. Once the canary deployment is live, requests will be routed to the new and old version of the Lambda function at a rate of 50\u002F50 using the Lambda alias from the APIGW stage variables to route traffic to the correct version.","Python","100",{},{"icon1":39,"icon2":44,"line1":48},{"x":40,"y":41,"service":42,"label":43},20,50,"apigw","API Gateway REST API",{"x":45,"y":41,"service":46,"label":47},80,"lambda","AWS Lambda",{"from":49,"to":50,"label":30},"icon1","icon2",{"headline":52,"bullets":53},"Additional resources",[54,57],{"text":55,"link":56},"API Gateway Canary Deployment","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fcanary-release.html",{"text":58,"link":59},"API Gateway RESTful API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-rest-api.html",{"from":42,"to":46},"patterns\u002Fapigw-canary-deployment-cdk",{"headline":63,"text":64},"Testing",[65],"See the GitHub repo for testing instructions.","KkgK7lG2kQ4YDSV7MAUwV3wpwptDI9F5Kg-qi-8nUkY",1782124503861]