There has been an edge case whereby Cloudformation now detects these AutoTags as drift on the resource (in this case AWS::EC2::SecurityGroup. In this particular use-case, adding the AutoTags to the templates to bring the stack in-sync with the provisioned resources is not an option, and as the AutoTags are service-managed and therefore cannot be deleted, there seems to be no way to resolve the drift on the stacks.
It would be nice if Cloudformation would detect tags with the reserved aws-* prefix as ServiceCatalog AutoTags and ignore them during drift detection. Might as well make this toggle-able while we're at it.
Name of the resource
AWS::EC2::SecurityGroup
Resource name
No response
Description
Service Catalog automatically adds service-managed tags to provisioned resources, called [AutoTags}(https://docs.aws.amazon.com/servicecatalog/latest/adminguide/autotags.html). These tags are distinguishable by their
aws:-*
prefix. and cannot be deleted.There has been an edge case whereby Cloudformation now detects these AutoTags as drift on the resource (in this case AWS::EC2::SecurityGroup. In this particular use-case, adding the AutoTags to the templates to bring the stack in-sync with the provisioned resources is not an option, and as the AutoTags are service-managed and therefore cannot be deleted, there seems to be no way to resolve the drift on the stacks.
It would be nice if Cloudformation would detect tags with the reserved
aws-*
prefix as ServiceCatalog AutoTags and ignore them during drift detection. Might as well make this toggle-able while we're at it.Please let me know if i can elaborate or clarify
Other Details
No response