trance-stack icon indicating copy to clipboard operation
trance-stack copied to clipboard

Update LambdaDeployemnt with simpler logGroup configuration

Open zmillman opened this issue 9 months ago • 0 comments

logGroup is a recently available configuration that makes it easier to manage where logs are sent from lambdas (https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#loggroup)

Instead of keeping the function name static, we can use a static logGroupName to get the same benefits.

This has an additional benefit of improving deploys because CloudFormation can bring up a new instance of the lambda and switch the API gateway over instead of updating the existing function in-place. (Closer to the standard blue/green deployment pattern)

zmillman avatar May 16 '24 20:05 zmillman