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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南