Skip to main content

Getting Started

Before You Begin

Prerequisites:

  • An active Harness Cloud Cost Management (CCM) account
  • Access to your cloud provider account(s) with appropriate permissions
  • Resources you want to optimize with AutoStopping

Note for Kubernetes Users: For Kubernetes clusters (Amazon EKS, Azure AKS, or Google GKE), you must first set up the appropriate cloud provider connector before configuring AutoStopping.

Setup Process

Setting up AutoStopping is a straightforward process that involves three main steps:

Step 1: Create a Cloud Connector

First, you need to connect Harness to your cloud provider account by creating a connector.

Create an AWS Connector with the following permissions:

  • Amazon EC2 access
  • AWS Cost and Usage Reports access
  • AWS Auto Scaling access (if using Auto Scaling Groups)
  • Amazon EKS access (if using Kubernetes clusters)
  • Amazon RDS access (if using database instances)

Step 2: Set Up Proxy or Load Balancer

Next, you'll need to set up a proxy or load balancer that will intercept and manage traffic to your resources. This component is what enables the seamless start/stop functionality.

Note for Kubernetes Clusters: For Kubernetes workloads (Amazon EKS, Azure AKS, or Google GKE), you will configure AutoStopping directly through the Harness UI without requiring a separate proxy or load balancer setup. You'll be prompted to provide your Kubernetes cluster details during the AutoStopping rule configuration.

Option 1: AutoStopping Proxy

Best for: Amazon EC2, and Amazon RDS Instances

The AutoStopping Proxy acts as an intermediary that forwards traffic to your resources and automatically starts them when needed.

Set up AWS AutoStopping Proxy →

Option 2: Load Balancer Integration

Best for: Amazon EC2, Auto Scaling Groups, and Amazon ECS Services

Integrate with your existing AWS Load Balancers to enable AutoStopping functionality.

Configure AWS Load Balancer for AutoStopping →

Step 3: Configure AutoStopping Rules

You can create AutoStopping Rules with two methods:

  1. Using Terraform: For detailed instructions, see Create AutoStopping Rules for Terraform.

  2. Using the Harness UI:

  1. In Harness, navigate to Cloud Costs > Cost Optimization > AutoStopping
  2. Click New Rule and select AWS
  3. Follow the guided setup to configure
  4. Review and activate your rule

Detailed AWS AutoStopping Configuration →