Skip to content

Documentation

AWS setup

Create the cross-account IAM role Jetscale assumes, attach the requested policy, and return the role details securely.

This page covers the AWS side of the connection: create a cross-account IAM role, attach the policy Jetscale requests, and return the role details through the secure channel agreed during onboarding.

Ask your Jetscale contact for the current values before you begin. The Jetscale AWS account ID, the External ID, and the permission policy are supplied by the Jetscale team for your onboarding; everything shown below is a placeholder.

Before you start

  • Permission to create IAM roles and policies in the target account.
  • AWS Cost Optimization Hub and AWS Compute Optimizer enabled on the account.
  • The Jetscale AWS account ID and External ID from your Jetscale contact.

Step 1: Confirm the External ID

The External ID is the value AWS checks when the role is assumed from another account. Use the External ID the Jetscale team gives you.

If your security policy requires you to generate it yourself, tell your Jetscale contact first, then produce a high-entropy value:

# A UUID
uuidgen

# Or a random hex string
openssl rand -hex 32

Return a self-generated External ID through the agreed secure channel, not in plain email or a shared document.

Step 2: Create the role

In the AWS console, go to IAM → Roles → Create role, choose AWS account → Another AWS account, and enter the Jetscale AWS account ID. Then edit the trust policy so it requires the External ID:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::[JETSCALE_ACCOUNT_ID]:root"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "[YOUR_EXTERNAL_ID]"
        }
      }
    }
  ]
}

Name the role something identifiable, for example jetscale-readonly-access. Keep the role global rather than scoping it to a single region, so it can be used for every region you want covered.

Step 3: Attach the permission policy

Attach the policy Jetscale requests. The full listing is on the AWS permissions page; compare it with the policy document your Jetscale contact supplies and apply that version.

If your security review requires changes to the policy, raise them with your Jetscale contact before attaching it.

Step 4: Return the role details

Send the following through the secure channel agreed during onboarding:

  • The role ARN, for example arn:aws:iam::123456789012:role/jetscale-readonly-access.
  • Your AWS account ID.
  • The External ID, if you generated it yourself.
  • Any region restrictions you applied.

Step 5: Verify

Confirm the role works before treating the account as connected:

  • Ask your Jetscale contact to confirm the connection and report anything missing.
  • Check CloudTrail for AssumeRole events referencing the role you created, so you can see the access in your own audit trail.

Troubleshooting

AccessDenied when the role is assumed. Check that the External ID matches exactly, that the account ID in the trust policy is the one Jetscale supplied, and that the trust policy allows sts:AssumeRole.

No cost data. Cost Explorer needs to be enabled and can take up to 24 hours to populate after activation. Confirm that Cost Optimization Hub is enabled and that Compute Optimizer has an opt-in status.

Resources missing from some regions. Confirm the role is not region-scoped and that the regions in question are enabled on the account.