Control Tower Setup Errors

0

IHAC that attempted to decommission a Landing Zone using the prescriptive guidance in the documentation. They were unable to delete the AWSServiceRoleforAWSControlTower role because it stated it cannot delete the Service Linked Role because it is part of a managed account. It was linked to EventBridge and Security Hub (disabled in the account).

They attempted to setup the LZ again and ran into the following error. They cannot decommission again through the dashboard. Retry fail. Any guidance would be greatly appreciated.

ERROR: "Service role name AWSServiceRoleforAWSControlTower has been taken in this account, please try a different suffix."

  • Have they tried deleting the IAM Role?

AWS
asked 10 months ago209 views
1 Answer
0

Hi @rePost-User-2950933!

This appears to be an error that occurs when there’s already a service-linked role for controltower.amazonaws.com. Because IAM roles cannot be created with the same name, the error suggests that you add a different suffix to the name, for that you can just try adding a custom prefix using the "--custom-suffix" command option [1]. If you are looking for a way to analyze if there’s any other services using this role or even make sure that EventBridge and Security Hub are not using the role anymore, you can perform an access analysis using IAM [2].

References:

[1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/create-service-linked-role.html

[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html?icmpid=docs_iam_console

profile pictureAWS
answered 9 months ago

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.

Guidelines for Answering Questions