Skip to content

Connect one AWS account

Korai reads your AWS account through a read-only IAM role that a CloudFormation stack creates in your account. Nobody shares keys, and you can remove access at any time by deleting the stack.

Connections: cloud connections and the AWS accounts read

  1. In Connections, a tenant admin presses Connect a cloud account and types the AWS account id (12 digits, the payer account if you want billing).
  2. Open AWS and create the connection: the CloudFormation console opens in N. Virginia (us-east-1) with everything filled in. It has to be N. Virginia because AWS only creates billing exports there; the role itself is global.
  3. In AWS, tick the IAM acknowledgement and press Create stack. Wait for CREATE_COMPLETE (2 to 3 minutes).
  4. Back in Korai, leave the page open: it checks every 10 seconds and moves on by itself. Then the first collection runs (a few minutes) and your data appears.
  • The role KoraiReadOnly, usable only by Korai with your ExternalId.
  • In the payer account, a bucket and the FOCUS 1.2 billing export (the first export can take up to 24 h; Cost Explorer gives figures meanwhile) and the AWS carbon export.

See what Korai can read.

If you create or update the stack by hand, Manual path: stack parameters lists each value to copy into the field of the same name. To connect a second Korai to the same account (for example a test one), use The same account with other stack and role names: AWS allows one korai-focus export per account, so the second stack reuses the first one’s.

To add the other accounts of your AWS Organization, see AWS Organization.

The same company on AWS and Google Cloud, or several Google Cloud projects, stays in one tenant. Go to Connections › New connection › Another cloud or Google Cloud project: each one is a connection of the tenant, and FinOps, SecOps, GreenOps and the Overview read them together. Remove this connection, in a connection’s panel, stops reading it and takes its data out of the tenant. If the Google Cloud option says Google Cloud is not available on this Korai yet, LessThan3 still has to set up Korai’s own Google Cloud identity there; ask them.

A different company, or an environment you want to see completely apart, is a new tenant: ask LessThan3 to create it.

FinOps reads Google Cloud costs from the billing export to BigQuery.

  1. In Google Cloud, go to Billing › Billing export › BigQuery and enable the detailed usage cost export (the standard one also works) into a dataset.
  2. Grant Korai’s service account two roles. The connection panel shows the Cloud Shell commands.
    • roles/bigquery.dataViewer on that dataset;
    • roles/bigquery.jobUser on the project where Korai’s queries run. Korai’s queries read only the last few months and only your project, so they stay small.
  3. In Korai, open the Google Cloud connection, then Costs: billing export to BigQuery › Connect. Give the project and the dataset, then press Save and check.

Costs keep the billing account’s currency. When the tenant’s clouds bill in different currencies (AWS in US dollars, Google Cloud in euros), see Reporting currency. The export arrives with a few hours’ delay, and its first rows appear the day it is enabled.