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
Describe the bug
While deploying the stack the following warning appears:
[WARNING] aws-cdk-lib.aws_lambda.FunctionOptions#logRetention is deprecated.
instead create a fully customizable log group with `logs.LogGroup` and use the `logGroup` property to instruct the Lambda function to send logs to it.
Migrating from `logRetention` to `logGroup` will cause the name of the log group to change.
Users and code and referencing the name verbatim will have to adjust.
In AWS CDK code, you can access the log group name directly from the LogGroup construct:
"
declare const myLogGroup: logs.LogGroup;
myLogGroup.logGroupName;
"
This API will be removed in the next major release.
How to reproduce it
Just deploy a stack.
Expected behaviour
No warnings, as they indicate that in the next major CDK release the deployment will break.
Please fill in the following information about the solution:.
Version: 4.2.1
Region: us-east-1
Has the solution been modified from the version posted to this repository? Yes
If yes, are the changes available on GitHub? No
Screenshots.
The text was updated successfully, but these errors were encountered:
Describe the bug
While deploying the stack the following warning appears:
How to reproduce it
Just deploy a stack.
Expected behaviour
No warnings, as they indicate that in the next major CDK release the deployment will break.
Please fill in the following information about the solution:.
Screenshots.
The text was updated successfully, but these errors were encountered: