How it works...
In this recipe, we created an account from the CLI using the create-account subcommand. This command works asynchronously and returns immediately with a request ID. We can check the status of our request using the describe-create-account-status subcommand while providing the request ID. To check whether an account was created, we can check the AWS CloudTrail log for the CreateAccountResult event.
The create-account subcommand also accepts other parameters, namely role-name and iam-user-access-to-billing. The role-name parameter is used to specify the name of an IAM role that will be automatically pre-configured in the new member account. This role provides administrator permissions to the member account and trusts the master ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access