- Newest
- Most votes
- Most comments
I understand your frustration with this situation. It appears that you've encountered an issue where a tag-sync task is persisting even after deleting the associated application. This can indeed prevent you from recreating an application with the same tag key-value pair. Here's what you can do to resolve this issue:
-
First, try to cancel the existing tag-sync task. You can do this using the CancelTagSyncTask API operation. This operation requires the "resource-groups:CancelTagSyncTask" permission on the application group.
-
If canceling the tag-sync task doesn't work or you're unable to locate it, you may need to check the status of the tag-sync task using the GetTagSyncTask API. This will give you more information about the current state of the task, including whether it's in an ACTIVE or ERROR state.
-
If the tag-sync task is in an ERROR state, review the ErrorMessage returned by GetTagSyncTask for more information on how to resolve the issue.
-
In case you're still unable to delete the resource group or cancel the tag-sync task, you may need to contact AWS Support. They can help you resolve issues that are not accessible through standard API operations or the console.
-
For future reference, when deleting an application, ensure that you also cancel any associated tag-sync tasks before deletion to avoid this situation.
-
If you absolutely need to recreate the application immediately and can't wait for the above steps, you might consider using a slightly different tag key-value pair for the new application. However, this should be a last resort as it may require updating tags on your resources.
Remember, each application can support multiple tag-sync tasks, but each task must have a unique tag key-value pair. Also, there's a limit of 100 tag-sync tasks per account across all applications.
By following these steps, you should be able to clear the lingering tag-sync task and recreate your application without changing the tags on all your resources.
Sources
Resolving tag-sync errors in myApplications - AWS Management Console
CancelTagSyncTask - AWS Resource Groups
GetTagSyncTask - AWS Resource Groups
StartTagSyncTask - AWS Resource Groups
answered 2 years ago
Relevant content
asked 2 years ago
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago

Hi, Canceling the task using the API was indeed possible (with up to date CLI), and the only way since it's not listed anywhere in the Console. I was then able to recreate the app and tag sync. Thank you for this solution.
This is usually performed by myApplications service, automatically, but was bugged a few days ago. Given the amount of bugs in this service, I will remember this, but getting stability in this service would be more than welcomed, there's been a lot of regressions, both in Console and in the service behavior, lately.