-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-s3-deployment: logRetention is deprecated warnings #28809
Comments
Similar issue to #28806 |
Thanks for reporting. This will be fixed in #28783 |
|
1 similar comment
|
@mrgrain Any solution or workaround to this yet? I didn't understand what to do based on [WARNING] aws-cdk-lib.aws_lambda.FunctionOptions#logRetention is deprecated. In AWS CDK code, you can access the log group name directly from the LogGroup construct: declare const myLogGroup: logs.LogGroup;
myLogGroup.logGroupName; |
Describe the bug
We use a custom shared cdk-lib built on top of aws-cdk used by 100's of applications. Part of this library uses
aws-s3-deployment
and theBucketDeployment
construct.Since upgrading and the deprecation of
logRetention
, our logs are contain deprecation warnings from thebucket-deployment
that continues to use the deprecated field.Expected Behavior
No warning logs
Current Behavior
Reproduction Steps
Create a stack with the latest
BucketDeployment
Possible Solution
custom-resource-handlers
/BucketDeploymentSingletonFunction
lambda to use LogGroups and removelogRetention
bucket-deployment.ts
to accept LogGroups instead oflogRetention
Additional Information/Context
No response
CDK CLI Version
2.122.0
Framework Version
No response
Node.js Version
20
OS
OSX
Language
TypeScript
Language Version
TypeScript (5.3.3)
Other information
No response
The text was updated successfully, but these errors were encountered: