Automate account creation in Control Tower

0

Hi! Recently I've been automating account creation in Control Tower using Service Catalog APIs as it's explained in this docs: https://docs.aws.amazon.com/controltower/latest/userguide/automated-provisioning-walkthrough.html.

Actually, we want to customize our Landing Zone using CfCT (Customization for Control Tower). I was wondering if it is possible to automate account creation using CfCT. I've done a small test deploying a CloudFormation AWS::ServiceCatalog::CloudFormationProvisionedProduct resource but I haven't achieve anything yet. Anyone has any experience with this?

已提问 4 个月前447 查看次数
1 回答
2

Hi, while it would be possible to do that. Adding Cloudformation to CfCT that creates accounts would not be recommended. CfCT is designed to be triggered by the Control Tower Account creation process. Lifecycle events will be emitted as the account is created, and those are received by CfCT. So you would effectively creating a bit of a loop if you were to request accounts through CfCT. It would look a bit like this {Update CfCT config} -> {Trigger CfCT execution} -> {Control Tower creates account} -> {Trigger CfCT execution}. The first CfCT execution in that path won't apply anything to the new account as it doesn't exist yet.

Having another pipeline or automation process that handles account requests would be a more recommended option. This makes the process modular and easier to change or troubleshoot. So you would have {Account Request Process} -> {Control Tower creates account} -> {CfCT then updates the Account or Landing Zone}. This should stop redundant executions.

profile pictureAWS
已回答 4 个月前

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

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

回答问题的准则