You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see the lambda is deployed to different environment which is specified by ${self:custom.stage} - the stage var is coming from a buildspec file and can have two values dev or prod.
If the stage is dev then I want the retention period to be 14 days and if its prod then 60 days. Is there a way to achieve this?
The text was updated successfully, but these errors were encountered:
I want to modify the log retention period based on which env my lambda is deployed for. The below is my serverless.yml code.
As you can see the lambda is deployed to different environment which is specified by ${self:custom.stage} - the stage var is coming from a buildspec file and can have two values dev or prod.
If the stage is dev then I want the retention period to be 14 days and if its prod then 60 days. Is there a way to achieve this?
The text was updated successfully, but these errors were encountered: