1 Answer
0
Hi,
given you have both API and lambda in same account you could use Lambda aliases (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).
You can :
- create two aliases for your lambda, DevAlias and StageAlias
- Associate same or different Lambda version to them
- Associate the lambda aliases as lambda integrations with the API Gateway.
I would look into Code Deploy abilities to perform Canary deployment for Lambda aliases. Some references:
- https://effectiveserverless.com/lambda-codedeploy-canary
- https://towardsaws.com/lambda-canary-based-deployment-using-codepipeline-codedeploy-and-sam-3226c7514b59?gi=642939ec36cb
Hope it helps
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 5 months ago