Removing Stack Instances During Account Decommission

0

I'm looking for best practice guidance on removing accounts from Control Tower and dealing with stack instances. In my management account I have CfCT setup. If I understand correctly, I need to delete the Service Catalog product, move the account to a Suspended OU outside the scope of CfCT, and close the account. At that point, all stack instances from CT and CfCT will still remain and I should eventually remove them. My question is: do you need to remove these stack instances immediately to prevent errors in Control Tower or CfCT? Or can I remove these over an extended period (for example 7 days) of time without risk of errors as I continue to use CT/CfCT?

已提問 1 年前檢視次數 475 次
3 個答案
1
已接受的答案

It would be better to remove them immediately during the account decommissioning process. CfCT may throw errors if an account is listed in stack instances and it can't access the account (suspended or had the AWSControlTowerExecution role removed)

AWS
Roguen
已回答 1 年前
0

So it sounds like the best order of operations is to remove all stack sets from CT/CfCT prior to account closure. Or all together:

-Remove Service Catalog Product

-Move to suspended OU

-Delete any remaining Stack Instances

-Close account.

已回答 1 年前
  • A few other steps that I think would be relevant with some added detail and a little re-ordering. For the most part I think you’ve got the idea though:

    -Move account to “Transitional” OU - or some OU that is outside of manifest OUs but within Control Tower governance. Do this by doing an update to the provisioned product in Service Catalog.

    -Rerun the CfCT pipeline, this action will delete StackSet instances deployed by CfCT from the account.

    -Terminate the provisioned Service Catalog product associated with the account to unmanage account from Control Tower. This action will also delete StackSet instances deployed by Control Tower from the account and also removes the Control Tower admin role.

    -Ensure all resources are shut down/deleted on the account (EC2, RDS, etc…).

    -Move to “Suspended” OU which is outside of both Control Tower control and CfCT manifest and has a deny * SCP attached

    --Leave in Suspended OU. Verify CfCT and StackSets are working properly.

    --Delete the account following this process: https://aws.amazon.com/premiumsupport/knowledge-center/close-aws-account/

    --The account will be in suspend mode for 90 days before deletion.

  • Thank you for the very thorough response to this!

0

And removing them is just a manual process (or could be scripted)?

已回答 1 年前
  • It could be manual, though it's just removing the stack instances from the StackSets, so could be scripted via CLI calls or other tooling.

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

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

回答問題指南