Setup Guide

Connect an AWS account to Cloudlink with one read-only IAM role, run your first scan, and get ready to track cost regressions.

1. Create your account

Sign up at cloudlinkglobal.com/signup, or apply for the free fall 2026 pilot at cloudlinkglobal.com/pilot.

2. Deploy the CloudFormation template

In the dashboard, open Credentials, click + Add credential, and download cloudlink-role.yaml. You can also download it from https://cloudlink-agents.onrender.com/setup/cloudformation-template.

Create a stack from it in the AWS CloudFormation console:

  • ExternalId — a secret string you choose (8 to 128 characters). You will enter it in Cloudlink in step 3.
  • RoleName — defaults to CloudlinkRole.
  • CloudlinkAccountId — only shown if the template does not already include Cloudlink's AWS account ID. Use the 12-digit ID we give you during onboarding.

The stack creates one IAM role that only Cloudlink's AWS account can assume, and only with your External ID. Its policy allows exactly these 22 read-only actions:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances",
        "ec2:DescribeInstanceStatus",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeVpcs",
        "ec2:DescribeSubnets",
        "ec2:DescribeVolumes",
        "ec2:DescribeRegions",
        "ec2:DescribeTags",
        "cloudwatch:GetMetricStatistics",
        "cloudwatch:ListMetrics",
        "ce:GetCostAndUsage",
        "ce:GetCostForecast",
        "s3:ListAllMyBuckets",
        "s3:GetBucketLocation",
        "s3:GetBucketPublicAccessBlock",
        "s3:GetBucketEncryption",
        "s3:GetBucketVersioning",
        "s3:GetBucketAcl",
        "rds:DescribeDBInstances",
        "rds:DescribeDBClusters",
        "lambda:ListFunctions",
        "sts:GetCallerIdentity"
      ],
      "Resource": "*"
    }
  ]
}

There are no write permissions and no s3:GetObject. Cloudlink runs in read-only mode and never changes anything in your account. To cut off access, delete the stack.

3. Add the credential in Cloudlink

Copy RoleArn from the stack's Outputs tab. On the Credentials page, paste the role ARN and your External ID, and list the regions to scan (comma-separated; if left empty, only us-east-1 is scanned). Click Save credential, then Verify to check that Cloudlink can assume the role.

4. Turn on hourly cost data

Cost-regression detection and budgets use hourly cost by service from Cost Explorer. AWS only returns hourly data if hourly granularity is turned on in your Cost Explorer preferences, and AWS charges for it. Without it, Cloudlink still reads month-to-date costs and scans your resources.

AWS also bills Cost Explorer API requests to the scanned account (currently $0.01 per request). Each Cloudlink scan makes three of them.

5. Run your first scan

Click Scan next to the credential. After that, scans run automatically every 30 minutes by default. Findings appear on the Resources page.

6. Connect your CI pipeline (optional)

To find cost regressions tied to deploys, send a deploy event from your CI pipeline after each deploy. See the CI integration guide.

7. Wait for data

Each scan fetches the last 48 hours of hourly cost by service. Regression detection needs hourly cost data from both before and after a deploy, and only looks at a deploy once it is at least 2 hours old. Until there is enough data, deploys are left for the next detection run (every 30 minutes by default).

Need help?

Email us at satvikranga60@gmail.com.