[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-apigw-canary-deployment-cdk-java":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":14,"deploy":16,"description":21,"extension":22,"framework":23,"gitHub":24,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":51,"s3URL":6,"services":62,"stem":63,"testing":64,"videoId":50,"__hash__":68},"patterns\u002Fpatterns\u002Fapigw-canary-deployment-cdk-java.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\u002Fmuhammed-soyer.json",{"text":17},[18,19,20],"cdk deploy MyServerlessApplicationStack","cdk deploy MyServerlessApplicationStack -c env=dev ","cdk deploy CanaryDeploymentStack","Create a serverless app using API Gateway and Lambda. Then create an API Gateway canary deployment","json","AWS CDK",{"template":25},{"projectFolder":26,"repoURL":27,"templateURL":28,"templateFile":29},"apigw-canary-deployment-cdk-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-canary-deployment-cdk-java","serverless-patterns\u002Fapigw-canary-deployment-cdk-java","src\u002Fmain\u002Fjava\u002Fcom\u002Fmyorg\u002FMyServerlessApplicationStack.java",{"headline":31,"text":32},"How it works",[33],"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.","Java","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"apigw","API Gateway REST API",{"x":44,"y":40,"service":45,"label":46},80,"lambda","AWS Lambda",{"from":48,"to":49,"label":50},"icon1","icon2","",{"bullets":52},[53,56,59],{"text":54,"link":55},"Build an API Gateway REST API with Lambda integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fgetting-started-with-lambda-integration.html",{"text":57,"link":58},"Working with the AWS CDK in Java","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fwork-with-cdk-java.html",{"text":60,"link":61},"AWS CLI start-execution","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002Fstart-execution.html#start-execution",{"from":41,"to":45},"patterns\u002Fapigw-canary-deployment-cdk-java",{"headline":65,"text":66},"Testing",[67],"See the GitHub repo for testing instructions.","L_3_DErTqYW8hBnYZfKxSGfrl-Bu3oPbTTg7lHaSlZY",1778846881586]