Hi all, 2 Questions about Lambdas. 1. How do I cha...
# aws
Hi all, 2 Questions about Lambdas. 1. How do I change the retention of the log group a lambda generates for its logs? In the docs I found https://www.pulumi.com/registry/packages/aws/api-docs/lambda/function/#cloudwatch-logging-and-permissions, but when I do the same it does not work - the log group for the lambda created has a
never expire
retention policy - to be more specific, the log group I create manually does get a retention policy, but the logs for the lambda are being registered into the default log group the lambda generates which is marked as
never expire
2. How to I disable tracing/xray for Lambdas? In the tracing options (https://www.pulumi.com/registry/packages/aws/api-docs/lambda/function/#functiontracingconfig), mode can only be
Pass Through
and there’s no mentioning what is the default. When I try to set it to
I get an error from Pulumi. Truly appreciate assistance with these Thanks!