aws-cloudformation-resource-providers-logs icon indicating copy to clipboard operation
aws-cloudformation-resource-providers-logs copied to clipboard

Allow Update of LogSubscriptionFilter properties without replacement

Open georgealton opened this issue 2 years ago • 0 comments

The AWS::Logs::SubscriptionFilter Resources sets all its Properties as requiring replacement, making it impossible to update resources with 2 Subscription Filters.

Log Groups support a maximum of 2 Subscription Filters per Log Group. When you have 2 Filters attached to Log Group, and attempt to modify one of them, CloudFormation attempts to create a temporary 3rd Filter before deleting the existing one. As it's only possible to have 2 LogGroups, the 3rd Filter fails to create.

The PutSubscriptionFilter API supports updates (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html).

It would be useful if some of the Properties of a SubscriptionFilter could be updated without requiring the entire resource to be replaced. This would allow updates to filters when there are 2 filters attached to a LogGroup.

georgealton avatar Aug 31 '22 16:08 georgealton