For the complete documentation index, see llms.txt. This page is also available as Markdown.

Feature Permissions for CACM

A comprehensive guide to Harness Cloud & AI Cost Management (CACM) licensing plans, feature limitations, and what happens when your license expires.

Harness Cloud & AI Cost Management (CACM) supports multiple features across AWS, Azure, GCP, and Kubernetes. Each feature requires a specific set of cloud-provider permissions so that CACM can ingest data, surface insights, and (optionally) take cost-saving actions on your behalf.

Use this page to:

  • Understand the minimum IAM roles or policies needed for every CACM feature.

  • Apply the principle of least privilege when setting up connectors.

  • Troubleshoot connector validation errors that report missing permissions.


AWS

Cost Visibility

The cost visibility policy grants the following permissions:

  • List CUR reports and gain visibility into the organization's structure.

  • Get objects from the S3 bucket configured in the CUR.

  • Put objects into the Harness S3 bucket.

Cost Visibility IAM Policy

  HarnessBillingMonitoringPolicy:
    "Type": "AWS::IAM::ManagedPolicy"
    "Condition": "CreatingHarnessBillingMonitoringPolicy"
    "Properties":
      "Description": "Policy granting Harness Access to Collect Billing Data"
      "PolicyDocument":
        "Version": "2012-10-17"
        "Statement":
          - "Effect": "Allow"
            "Action":
              - "s3:GetBucketLocation"
              - "s3:ListBucket"
              - "s3:GetObject"
            Resource:
              - !Join
                - ''
                - - 'arn:aws:s3:::'
                  - !Ref BucketName
              - !Join
                - /
                - - !Join
                    - ''
                    - - "arn:aws:s3:::"
                      - !Ref BucketName
                  - '*'
          - "Effect": "Allow"
            "Action":
              - "s3:ListBucket"
              - "s3:PutObject"
              - "s3:PutObjectAcl"
            "Resource":
              - "arn:aws:s3:::ce-customer-billing-data-prod*"
              - "arn:aws:s3:::ce-customer-billing-data-prod*/*"
          - "Effect": "Allow"
            "Action":
              - "cur:DescribeReportDefinitions"
              - "organizations:Describe*"
              - "organizations:List*"
            "Resource": "*"
      "Roles":
        - "!Ref HarnessCloudFormationRole"

Resource Inventory Management Permissions

The Resource Inventory Management feature provides visibility into your AWS resources including EC2 instances, EBS volumes, and ECS clusters. This feature helps finance teams understand resource utilization across the organization.

Required Permissions The inventory management policy performs the following actions:

ECS Visibility - For Granular Cluster Cost Breakdown EC2, EBS, RDS Visibility - Inventory Management

Inventory Management IAM Policy

AutoStopping Rules Permissions

Autostopping supports Granular Permissions On this screen, you can select specific features and services for AutoStopping:

EC2 Instances

Schedules only
Spot Orchestration
with AWS ALB
with AutoStopping Proxy

Auto Scaling Groups

Schedules Only
with AWS ALB

RDS Databases

Schedules only
with AutoStopping Proxy

ECS Instances

Schedules only
with AWS ALB

Cloud Asset Governance Permissions

For Cloud Asset Governance, add the ReadOnlyAccess policy to the IAM role or user used by Harness. This policy supplies the baseline read-only permissions needed.

  • This is not an exhaustive list; you may require additional permissions to support custom rules.

  • A yellow underline in a custom policy indicates that you need permission to support the underlined filters and/or actions.

Commitment Orchestrator Permissions

Step 1: Visibility

To enable visibility, in the master account connector, you need to add the following permissions.

Visibility IAM Permissions

Step 2: Setup flow (to enable actual orchestration)

Orchestration Setup IAM Permissions

Azure

Governance Permissions

  • Assign the Reader role to let Harness view resources for governance analysis.

  • If you want Harness to execute automated governance actions, also assign the Contributor role.

Granular Permissions for AutoStopping

On this screen, you can select specific features and services for AutoStopping:

Virtual Machines

Schedules only
with App Gateway
with AutoStopping Proxy

------

GCP

Governance Permissions

To configure permissions for Cloud Governance features:

  1. Navigate to IAM & Admin in the GCP console.

  2. If authentication is done via service account:

    • Search for your service account in the principals list

    • Click Edit Principal

    • Add the Viewer role (roles/viewer) from the Basic category

    • For automated actions, grant additional permissions as required by your governance policies

  3. Click Save to apply the changes.

Enable required Google Cloud APIs for Governance

Governance Recommendations rely on the following Google Cloud services. Make sure they are enabled in every project you want to monitor:

You can enable the APIs via Google Cloud console:

  1. Open APIs & Services for your project (https://console.cloud.google.com/apis/library).

  2. Search for each API above and click Enable.

For enabling through console, see the GCP documentation.

Granular Permissions for AutoStopping

Compute Engine Virtual Machines

Schedules only
with AutoStopping Proxy

Instance Groups

Schedules only
with AutoStopping Proxy

------

Last updated

Was this helpful?