Skip to main content

Using the Account Factory Workflow

Generate the account-request file

There are currently two ways to generate the account-request file:

  1. Using the Gruntwork Developer Portal (GitLab and GitHub non-enterprise customers)
  2. Using the Account Factory workflow in your repository (GitHub only)

Using the Gruntwork Developer Portal

  1. Navigate to the Account Request page in the Gruntwork Developer Portal, as an authenticated user, to access the request generator UI.

    Account Request GeneratorAccount Request Generator

  2. If the form is disabled for filling out, request that an Admin in your Gruntwork Developer Account configures the Account factory settings.

  3. Fill out the form with the required information and click on the "Generate Account Request" button.

  4. Use the "Download" button to download the account-request file or the "Copy" button to copy the account-request file to your clipboard.

  5. Navigate to your repository and create a new branch.

  6. Create a new file in the _new-account-requests directory by moving the downloaded file to the directory or by creating a new file with the content of your clipboard. If copying content, ensure that the file is created with the correct name displayed in the generator output.

  7. Commit your changes and open a Pull Request to the main branch.

Review and merge the account request PR

Review and merge the Pull Request to begin the account creation process.

Once the account request PR merges into the main branch, Pipelines will initiate the account creation in AWS. This process typically takes 10 to 15 minutes but may extend to 45 minutes.

  • The SSO user created for the new account will use your organization's Access Portal URL to log in. New users invited to AWS IAM Identity Center (formerly AWS SSO) will receive an email with login instructions. Existing users can access the Portal URL through the organization's administrator.

  • The root user of the new account will receive an email and can log in by following the "Forgot Password" process on the AWS Console's Sign-in page.

When the account is successfully created, Pipelines will open another Pull Request to baseline the account.

Review and merge the Account Baseline PR

Review and merge the Account Baseline Pull Request. This PR contains essential infrastructure for enabling your delegated repository to plan and apply infrastructure changes in AWS. It also includes account baselines and configured account-specific infrastructure, such as a VPC.

The new account's Infrastructure as Code (IaC) is tracked in infrastructure-live-root as a newly created directory. Once the Account Baseline PR merges into the main branch and Pipelines applies the changes, you can add infrastructure to the new account by creating Terragrunt units in the directory.