Prepare AWS Account - Use Nucleator to Automatically Create Prerequisite AWS Resources in Account
When a new AWS Account is created, only the minimum IAM configuration is manually created, so that Nucleator can take the initial actions required to provision Nucleator IAM Roles within the Account.
Now that Nucleator Roles are in place, you can request that Nucleator setup your Account so that several account-level best-practice AWS services are enabled and so that account-level AWS resources that will be required by Nucleator Cages and Stacksets are in place for their use. Establishing these resources once, at the Account level, simplifies the downstream use and operations of Cages and Stacksets.
Even if you are only working with a single AWS Account, Nucleator assumes the Nucleator Roles that have been provisioned within your account, obtaining temporary security credentials that are required to operate within your Account. The NucleatorUser IAM user that was manually created is trusted to initiate assumption of the required Nucleator Roles so that you can continue to work locally to create the required initial Cages and Stacksets. Later, you will set up Nucleator to run within AWS using an IAM Instance Profile that allows it to assume the required Nucleator Roles.
nucleator account setup
takes the following actions within your Account:
- account-setup Cloudformation Stack. Nucleator launches a CloudFormation template that is dynamically generated to create the remainder of the AWS resources described in this list. The CloudFormation template is named
account-setup-<account_name>>-<<customer_name>>
. You can inspect the "resources" tab of the the resulting CloudFormation stack to see exactly which resources resulted fromaccount setup
. - Nucleator Template S3 Bucket and Hosted Zones for each defined Cage. Nucleator create additional prerequisite resources within the AWS Account that need to be in place for downstream operations of Nucleator Cages and Stacksets. These include:
- An S3 Bucket where Nucleator's CloudFormation templates will be placed. One such Bucket is created per AWS Account, in the region that you have specified for
bootstrap_region
for the specified Account in the customer configuration file for the Customer that you have specified (us-west-2
by default). The template bucket is namednucleator-{{account_name}}-{{customer_domain}}-{{hash}}
. Ifcustomer_domain
has any dots, they are replaced by hyphens. For example:Nucleator-test1-47lining.com-ow76xk
becomes Nucleator-test1-47lining-com-ow76xk
- A Route53 Hosted Zone corresponding to each of the Cages that will reside within the Account. The Cage definitions are drawn from the customer configuration file for the Customer that you have specified. Each Cage, when created, will use its corresponding Hosted Zone for DNS resolution through the top-level
customer_domain
specified in the same customer configuration file.
- An S3 Bucket where Nucleator's CloudFormation templates will be placed. One such Bucket is created per AWS Account, in the region that you have specified for
- Cloudtrail. Nucleator creates an S3 bucket with the required policy, and enables Cloudtrail in the Region specified as the
bootstrap_region
for this Account within your Nucleator configuration.
- Detailed Billing. Nucleator creates an S3 bucket with the required policy to support detailed billing. After this is done, you will still need to log into your Account using root account credentials, enable detailed billing within the account and select the Nucleator Tag keys to be included in detailed billing reports.
Next: Prepare AWS Account - Set Up DNS for Cages Defined Within Your Account