API and Terraform

Manage cloud cost reporting as code

The Public API and the Terraform provider work with the same objects as the product. The Terraform modules that grant read-only access and the Kubernetes agent are open source.

Permanent Free plan with no time limit

Public API

Read costs and manage reporting from your own tools

The Public API queries cost data and manages workspaces, cost reports, folders, dashboards, segments, budgets, allocation rules and virtual tags. Requests authenticate with API tokens scoped to the capabilities a script needs.

API tokens are part of the Optimize and Scale plans.

API reference Authentication and tokens

Terraform provider

Keep segments, budgets and reports in version control

The costfluent/costfluent Terraform provider manages workspaces, cloud connections, segments, allocation rules, budgets, cost reports, folders, dashboards, saved filters and virtual tags through the Public API, so a cost structure is reviewed like any other change.

Provider in the Terraform Registry Terraform guide

Open source

Read the code that touches your accounts

Everything that runs in or grants access to your cloud is published with its licence.

  • AWS cost-access module

    Grants Costfluent read-only access to an AWS account's cost data. MIT licence.

    costfluent/terraform-aws-cost-access

  • Azure cost-access module

    Grants read-only access to one Azure subscription's cost data. MIT licence.

    costfluent/terraform-azure-cost-access

  • Google Cloud cost-access module

    Grants read-only access to one Google Cloud billing export. MIT licence.

    costfluent/terraform-gcp-cost-access

  • Terraform provider

    The provider described above. Apache 2.0 licence.

    costfluent/terraform-provider-costfluent

  • Kubernetes agent

    Reports node, pod and container usage from a cluster. Apache 2.0 licence.

    costfluent/k8s-agent

  • Helm chart

    Installs the Kubernetes agent. Apache 2.0 licence.

    costfluent/helm-charts

Modules in the Terraform Registry

Related pages

Start with the product, automate when you are ready

Create a Free workspace, connect a cloud read-only, and move to Optimize when you want the API and Terraform.

Permanent Free plan with no time limit

We value your privacy

We use essential storage to operate the site and, only if you allow it, Google Analytics to understand how it is used. Read more in our Privacy policy.

Cookie preferences

Essential cookies Always on

Required for the website to function properly. These cannot be disabled.

Google Analytics

Records page views and four named actions: sign-up and demo clicks, contact form submissions and lead requests. Google's script and its _ga cookies load only after you allow them. We do not send account, tenant, form, or resource identifiers.