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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠