Updating/deleting stacksets deployed in Organization

0

Is there a clean way to update or delete stacksets that are created at Organization level? While creating a stackset there is an option to select "Deploy to Organization" option. But after creation while trying to update it, it needs to have specific OU Ids selected and cannot be targeted to the whole Organization. Is there an easier way to do it especially for large enterprises? Even after using a valid OU during update, it errors out saying "Organizational unit ou-xxxx not found in StackSet". A similar situation occurs while trying to delete the stackset. To delete stackset, you need to remove all stacks first, but can’t get stacks removed because it only offers choice of OU and any OU type gets similar message of not existing in stack. Is there a better way of handling this?

AWS
질문됨 4년 전2201회 조회
1개 답변
0
수락된 답변

You can update a stackset created at Organization level using rootId, as these stacksets are created against the rootId.

To get the rootId, use ListRoots Organizations API https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListRoots.html or get it from console (from Organizations). Format will be similar to “arn:aws:organizations::111111111111:root/o-exampleorgid/r-examplerootid111”. The error – “Organizational unit ou-xxxx not found in StackSet” happens when there are no accounts in the OU, and this means no stack-instances. In this case update operation is expected to fail.

AWS
답변함 4년 전

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

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

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

관련 콘텐츠