Instance may be removed from the policy once a tag scan is performed

Instance may be removed from the policy once a tag scan is performed

An instance may be removed from the policy once a tag scan is performed

Issue:
When there is an instance which is added to two policies - by tag and via web-console, an instance will be removed from the policy in which it was added via GUI.
In logs you can see:
18-11-17 01:28:13,822:[140474899728128] WARNING: manage_account_tagged_resources(backup_tag.py:225) Instance i-*instance-id* was removed from policy %policy name%

Solution:
When you assign tag key: cpm backup, tag value: policy name to the instance -  the tag will be always prioritized and therefore instance will be removed from a policy where the instance was added via GUI.
Instances without tags can be managed in GUI. Instances with tags can only be managed by tags