When the log group of a Lambda function is created by the LogRetention custom resource, then those log groups linger after the stack has been deleted. It should be possible to configure the removal policy.
Use Case
Not having hundreds of dead log groups around, created for PR and test deployments.
Proposed Solution
This requires setting the deletionPolicy on the CfnResource, and implementing support for the "Delete" event type in the custom resource itself.
Other
N/A
This is a 🚀 Feature Request
When the log group of a Lambda function is created by the LogRetention custom resource, then those log groups linger after the stack has been deleted. It should be possible to configure the removal policy.
Use Case
Not having hundreds of dead log groups around, created for PR and test deployments.
Proposed Solution
This requires setting the
deletionPolicyon theCfnResource, and implementing support for the "Delete" event type in the custom resource itself.Other
N/A
This is a 🚀 Feature Request