Lesson 2 of 3 Automating Cost Management

FinOps Automation Tools

Many tools support FinOps automation. This lesson describes the categories of tools, with representative provider-native, open-source and commercial examples, and how to choose and combine them.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify provider-native cost management tools by function.
  • Describe OpenCost, Cloud Custodian, Infracost and Open Policy Agent.
  • Interpret a simple Cloud Custodian policy.
  • Describe the role of commercial FinOps platforms.
  • Explain how to choose and combine tools.

Provider-native tools

Each cloud provider offers cost management tools that are closest to the billing data and usually free or inexpensive. The following table gives examples by function.

FunctionAWSMicrosoft AzureGoogle Cloud
Cost analysis and APIsAWS Cost Explorer and its APICost Management cost analysis and APIsCloud Billing reports and BigQuery export
Budgets and alertsAWS Budgets, including budget actionsCost Management budgets and action groupsCloud Billing budgets with Pub/Sub notifications
Anomaly detectionAWS Cost Anomaly DetectionCost anomaly alertsCloud Billing anomaly detection
RecommendationsAWS Compute Optimizer, Cost Optimization Hub, Trusted AdvisorAzure AdvisorRecommender (Active Assist)
Policy and governanceAWS Organizations policies (SCPs, tag policies), AWS ConfigAzure PolicyOrganization Policy Service
SchedulingAmazon EventBridge Scheduler, Instance Scheduler on AWSAutomation runbooks, VM start/stopInstance schedules, Cloud Scheduler

Native tools see their own provider's data in detail and integrate with its identity and automation services. Their limitation is scope: each covers one provider, so multi-cloud organizations need to combine them or add a cross-provider layer.

Open-source tools

Several widely used open-source tools address specific FinOps needs. The following terms describe them.

OpenCost
A CNCF project that allocates Kubernetes cluster costs to namespaces, workloads and labels in real time, using provider prices.
Cloud Custodian
A rules engine, with policies written in YAML, that finds resources matching conditions, such as missing tags or idle instances, and takes actions such as notifying, tagging, stopping or deleting. It supports AWS, Azure and Google Cloud.
Infracost
Estimates the cost of Terraform infrastructure changes and can post the cost difference on pull requests.
Open Policy Agent OPA
A general policy engine used to evaluate rules, for example against infrastructure plans in a pipeline.

Open-source tools give flexibility and avoid license fees, but the organization must deploy, maintain and secure them.

A Cloud Custodian example

The following policy, written for Cloud Custodian, finds unattached block storage volumes in an AWS account that are older than 30 days and marks them for deletion seven days later, giving owners time to object. A separate policy would delete volumes whose mark has expired.

policies:
  - name: mark-old-unattached-volumes
    resource: aws.ebs
    filters:
      - Attachments: []
      - type: value
        key: CreateTime
        value_type: age
        value: 30
        op: greater-than
      - "tag:retain": absent
    actions:
      - type: mark-for-op
        op: delete
        days: 7

The policy shows the typical structure of a guardrail as code: a resource type, filters that define the condition including an exception tag, and an action with a grace period.

Commercial FinOps platforms

Commercial platforms combine data ingestion from many providers and SaaS tools, allocation with shared cost rules, dashboards for different personas, recommendations, anomaly detection, Kubernetes allocation and workflow integration. They suit organizations that want broad capability quickly or lack the engineering capacity to build and maintain their own. Their pricing is often a percentage of the cloud spend they manage, which should be weighed against the value they deliver.

Match the pairs

Which tool?

Exam skills 8.1.2

Match each task with the tool that performs it.

Log in to try this activity Interactive activities are free with an account.

Choosing and combining tools

The FinOps Framework's Automation, Tools & Services capability emphasizes that tools follow the practice. Organizations should first define their processes, data needs and personas, then choose tools that support them. Most mature organizations combine tools: native services for budgets, policies and recommendations, open-source tools for Kubernetes and IaC estimation, and a data platform or commercial tool for multi-cloud reporting. Tools that consume and produce FOCUS data are easier to combine and replace.

The following diagram maps each need to an example tool.

An example toolset for a company on two cloud providers that runs on Kubernetes and Terraform with a strong platform team. Native budgets, anomaly detection and recommendations; FOCUS exports from both providers for multi-cloud reporting; OpenCost for Kubernetes allocation; Infracost in the Terraform pipeline; and Cloud Custodian or native policy services for tags and clean-up. A commercial platform can come later.
Commercial platforms can replace several of these.
Scenario questions

Tools and process

Exam skills 8.1.2

Choose sensible tooling decisions.

Log in to try this activity Interactive activities are free with an account.
Worked example

Assembling a toolset

A company uses AWS and Azure, runs most services on Kubernetes and manages infrastructure with Terraform. It has a small FinOps team and a strong platform engineering team. Which tools could cover its main automation needs?

Native budgets, anomaly detection and recommendations in each provider; FOCUS exports from both providers into a shared data store for multi-cloud reporting; OpenCost for Kubernetes allocation; Infracost in the Terraform pipeline; and Cloud Custodian or the native policy services for tag enforcement and clean-up. The strong platform team makes open-source tools practical; a commercial platform could be added later if reporting needs outgrow the in-house solution.

Worked example

A tool before a process

A company bought a commercial FinOps platform a year ago. Dashboards exist, but teams do not use them and costs have not changed. What went wrong?

The tool was bought before the practice was defined. There are no owners for allocated costs, no review cadence, no process for turning recommendations into work and no KPIs that teams are measured on. The company should define these processes and responsibilities and then configure the tool to support them, for example by routing recommendations to team backlogs.

Check yourself

Which open-source tool would you use to allocate Kubernetes cost to namespaces, and which to estimate the cost of a Terraform change?

Show answer

OpenCost for Kubernetes allocation; Infracost for Terraform cost estimates.

Exam Tips

Remember for the exam

  • Native tools are closest to the data but cover one provider each.
  • OpenCost allocates Kubernetes cost; Cloud Custodian applies policy rules; Infracost estimates IaC changes.
  • Commercial platforms add multi-cloud breadth at a license cost.
  • Define the practice first, then choose tools; FOCUS makes tools easier to combine.