Connect Resource Accounts at Scale

CloudZero automatically discovers and connects 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 entityCloudZero's AWS accounts:
  • 061190967865
  • 559846027439
External IDYour organization's External ID
Inline policyresource_owner.json
Managed policiesComputeOptimizerReadOnlyAccess, ViewOnlyAccess, AWSBillingReadOnlyAccess (reference)
Role nameA name such as cz-autolink-role. CloudZero uses a single role name for Auto-Link. Every resource account across every payer account must use this exact name with the same casing (for example, cz-autolink-role and CZ-Autolink-Role are treated as different names).
  1. Confirm to your account manager that the role is live and provide the full ARN of the role from any single account where it is deployed. Only one ARN is needed. For example: arn:aws:iam::123456789012:role/cz-autolink-role.
  2. 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 discovers and connects your AWS accounts on an hourly cycle. 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. If any accounts fail to connect, your account manager can retry them or exclude specific accounts from discovery.

ℹ️

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