Skip to content

Deleted an application, but the tag sync remains, blocking me from recreating the app

0

Hello, I'm using myApplications to track various metrics, and uses tag sync.

Recently, I've deleted an application, then tried to recreate another one with the same tag sync. The UI is telling me that "This tag value is already used in a different application". However, this is not the case.

My guess is that the has been deleted, but not it's tag sync. I can indeed find, inside "Resource Groups", a saved resource group that should not exist anymore. This resouce group cant be deleted in the Console (no Delete button), and using CLI, I get this: An error occurred (ForbiddenException) when calling the DeleteGroup operation: Access denied. This group is managed by the service..

Please advise on how to clear data to be able to recreate the app+tag sync, without having to change the tags on all my resources. Thanks,

asked 2 years ago210 views

1 Answer
0
Accepted Answer

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. For future reference, when deleting an application, ensure that you also cancel any associated tag-sync tasks before deletion to avoid this situation.

  6. 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

  • 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.

    For future reference, when deleting an application, ensure that you also cancel any associated tag-sync tasks before deletion to avoid this situation.

    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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.