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
已提问 10 个月前219 查看次数
1 回答
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
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容