Set Retention of AppSync Log Group ? #15198
-
Hello, When deploying an AppSync API with logging enabled, the default Retention for its Log Group is "Never Expire". I didn't find a way to change it by code, only through the console interface. Is it something possible ? An option to set Retention in the Logging configuration of AppSync Construct Library would be neat :) Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I dont have an answer for you but Im having the same issue with BucketNotificationHandler. Would be nice if the API was little more obvious |
Beta Was this translation helpful? Give feedback.
-
For appsync you can set the retention days in the log config of the GraphqlApi https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.LogConfig.html |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
For appsync you can set the retention days in the log config of the GraphqlApi https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.LogConfig.html