Connecting to AWS

Step-by-step guide to connect an AWS account to Bluebricks using a CloudFormation stack

circle-info

First time using Bluebricks? The onboarding wizard walks you through connecting your cloud automatically. Follow the Quick Start instead.

Prerequisites

  1. Permissions to create CloudFormation stacks and IAM roles in your AWS account

How to connect in the Bluebricks app

1

Create a collection and launch CloudFormation

  1. Go to the Collections page

  2. Click Create Collection

  3. Name the collection (for example, production or staging)

  4. Select AWS as the cloud provider

  5. In the Account Number dropdown, click New Account

  6. Click Launch CloudFormation stack

This opens the AWS CloudFormation console with the Bluebricks template, stack name, and your External ID prefilled.

2

Create the stack in AWS

Review the prefilled stack details, scroll to the bottom, acknowledge the IAM capabilities checkbox, and click Create stack. Wait for the stack to reach CREATE_COMPLETE status. This usually takes under a minute.

3

Copy the Role ARN

Open the Outputs tab in the CloudFormation console. The stack provisions IAM roles that Bluebricks uses to access your AWS account. You need at least one Role ARN, but we recommend providing both for full visibility and deployment capabilities.

  • Discovery Role ARN: grants read-only access for resource discovery, inventory, and the context layer. Required for the agent to see what is running in your account

  • Orchestration Role ARN: grants read/write access for deploying and managing infrastructure through blueprints. Required for making changes through the orchestration platform

Copy the Discovery Role ARN and, if available, the Orchestration Role ARN. See Connect your Cloud for more details on permission types.

4

Connect in Bluebricks

Back in the Bluebricks wizard, paste the Role ARN(s) and click Connect & Create. Bluebricks verifies the connection and begins ingesting your cloud resources into the context layer.

How to connect via the CLI

You can also connect an AWS cloud account using the Bricks CLI:

bricks setup aws --collection production

The command walks you through the connection flow interactively. After setup completes, verify the connection:

bricks collection ls

A connected collection shows the cloud provider and account name:

GUID                                NAME           CLOUD PROVIDER   CLOUD ACCOUNT   SLUG              STATUS
----------------------------------- -------------- ---------------- --------------- ----------------- -------------------------
env-uuid-123                        production    AWS              aws-prod        production        DEFAULT, web-app (running)
circle-info

CLI cloud setup currently supports AWS only. To connect GCP, Azure, or a self-hosted runner, use the Bluebricks app with the provider-specific instructions above.

How to connect via the API

Use the Cloud Accounts APIarrow-up-right to create a cloud account. Pass the Stack ID as cloudFormationStackId and the Role ARN as roleArnId.

Next steps

Last updated

Was this helpful?