trance-stack
trance-stack copied to clipboard
Update LambdaDeployemnt with simpler logGroup configuration
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)