In this recipe, we will create a new OU called Test. We will create an AWS account from the CLI under one of those OUs. We will also look at account creation from the console.
Creating a new account under an AWS Organization
Getting ready
You'll need to create an AWS Organization account with a master account to complete this recipe. Follow the Creating a master account for AWS Organizations recipe to do so.
For executing the command from the CLI, we need to configure AWS CLI with credentials for a user with administrator access in your master account. I will be using a user with a CLI profile called awssecadmin.