Create a serverless app using API Gateway and Lambda. Then create an API Gateway canary deployment
Visit the GitHub repo for this pattern.
git clone https://github.com/aws-samples/serverless-patterns/ cd serverless-patterns/apigw-canary-deployment-cdk-java
cdk deploy MyServerlessApplicationStackcdk deploy MyServerlessApplicationStack -c env=dev cdk deploy CanaryDeploymentStack
cdk destroy CanaryDeploymentStack
cdk destroy MyServerlessApplicationStack