Connect Resource Accounts at Scale

CloudZero can automatically discover and connect your AWS resource accounts when you deploy an IAM role with CloudZero's read-only policies across your organization. Instead of connecting each account individually through the CloudZero UI, you define the role once in your provisioning tooling (Terraform, CloudFormation StackSets, or any other method) and deploy it across your accounts. CloudZero handles the rest. You get the same resource visibility and capabilities as individually connected accounts.

ℹ️

Connecting resource accounts individually? See Connecting to AWS for automated setup or Manual Setup for custom provisioning workflows.

What you need

Set up Auto-Link

  1. Create an IAM role in every AWS account you want to connect using your existing provisioning tooling (Terraform, CloudFormation StackSets, or similar). Configure each role with:

    SettingValue
    Trusted entityAWS account 061190967865 (CloudZero)
    External IDYour organization's External ID
    Inline policyresource_owner.json
    Managed policiesComputeOptimizerReadOnlyAccess, ViewOnlyAccess, AWSBillingReadOnlyAccess (reference)
    Role nameA name such as cz-autolink-role. Use the same name in every account.
  2. Confirm to your account manager that the role is live and provide the role name from step 1. This is the short name, not the full ARN. For example, if the full ARN is arn:aws:iam::123456789012:role/cz-autolink-role, the role name is cz-autolink-role.

  3. Your account manager enables Auto-Link and contacts you once it is active.

ℹ️

All permissions are read-only. For details on what each permission grants, see AWS Permissions and Security.

What to expect

After your account manager enables Auto-Link, CloudZero automatically discovers and connects your AWS accounts, typically within a few hours. Resource data appears across the platform within 24 hours of a successful connection.

Auto-Link runs on an ongoing basis. As long as you include the IAM role when you provision new AWS accounts, CloudZero connects them without any additional steps. Accounts without the role are skipped and do not cause errors.

ℹ️

Have questions or feedback? Reach out to your account manager.