Before you begin
- A CostGraph API key with the
pricing:readscope. Create one in Settings > API keys. - An Infracost API key, to price AWS, Azure, and Google Cloud resources. Without one, see Without an Infracost key.
Connect your Infracost key
In CostGraph, open Integrations, choose Infracost, and paste the API key your Infracost CLI already uses. Print it withinfracost configure get api_key.
Connecting a new key replaces the old one. You need to be an organization owner,
admin, or billing admin.
Point the CLI at CostGraph
Set two environment variables before you runinfracost. The value is your
CostGraph API key, not your Infracost key.
- CLI v0.10
- CLI v2
infracost breakdown as usual.