Hello, I want to ask is there a way to configure l...
# help
b
Hello, I want to ask is there a way to configure logs retention of
NextJsSite
construct resources? I have a high billing in cloudwatch and want to configure retention to reduce it I used
app.setDefaultFunctionProps
but it's not changing the logs of nextjsSite
d
Just to comment, I have no idea if this is exposed or not, but there are lots of things in the CDK where you cannot control log retention, and are defaulted to forever. I just created a cron job to look at all log groups and make them set to a maximum threshold if they are above it instead of worrying about catching every one.
b
Thanks for your comment, sounds a good idea! @Derek Kershner