Managing your AWS accounts
Over time you will need to run various operations on your AWS accounts such as requesting new accounts, creating new accounts, renaming accounts, etc. In Gruntwork Landing Zone, some AWS account management operations should only be done using IaC, some can only be done using ClickOps, and some can be done using either.
In this page, we review which mode (IaC or ClickOps) to use for each AWS account operation. When operations may be performed using either mode, we strongly recommend using IaC.
This page applies to users who are:
- Actively running Gruntwork Landing Zone
- Have access to an AWS user or IAM Role with administrative permissions to AWS Control Tower
When to use IaC vs. ClickOps
Below you'll find a table with common AWS account operations and the Gruntwork recommendation for if the operation should be done using IaC or in the AWS Console. When both options are available, using IaC is strongly recommended. You can explore more documentation for each operation by clicking on the operation name in the table.
- ✅ means that the operation should or can only be done using the given mode.
- ❌ means that the operation should not or cannot be done using the given mode.
|AWS Console (ClickOps)
|Create a new Organization Unit (OU)
|Request a new account
|Create a new account
|Remove an account
|Rename an account
|Update root account e-mail address
|Modify account controls
|Moving an account to a new Organizational Unit
|Update account admin user in Account Access IAM Identity Center
|Granting additional users access to accounts in AWS IAM Identity Center
AWS account management operations
Remove an AWS account
This operation removes an AWS account from AWS Control Tower but does not delete the AWS account.
Create a branch and delete the directory in your
infrastructure-liverepository that corresponds to the account you would like to remove.danger
This will delete all resources in the account. Make sure you are deleting the correct directory.
Push your changes and create a PR. Pipelines will detect that an account is deleted. Verify that all expected resources will be removed in the
Once you have confirmed everything looks as expected, merge the PR.
Create a branch and delete the account request file in
This will de-provision the product in AWS Service Catalog, but will not delete the account.
Push your changes and create a PR. Pipelines will detect that the account should be removed, which can be verified in the
Once you have confirmed everything looks as expected, merge the PR. After
applyruns, the account status should be
Update the new AWS account request
You may update some attributes of an AWS Account by modifying the account request file in
_new_account_requests. See below for steps to update each attribute.
Start by creating a new branch that will contain your changes.
- Update the name of the OU by modifying the
- Updating the account admin user by modifying the
sso_user_emailkeys to the new users first name, last name, and email.
After you have made your modifications, push your branch and create a pull request. Gruntwork Pipelines will detect the account changes and run a
plan operation. Review the output of the
plan to confirm the output is as expected. Once confirmed, merge the PR to apply the changes.