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?

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

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

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

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

관련 콘텐츠