Skip to main content

Guide

Cloud Cost copilot on AWS Fargate: Terraform deployment kit

Run Cloud Cost Copilot in your own AWS account without a Kubernetes cluster. This Terraform kit deploys it as a single AWS Fargate task, with no load balancer and no inbound ports, for about $12–14 a month of infrastructure. Requires an active Cloud Cost Copilot subscription in AWS Marketplace.

Cloud Cost Copilot is a read-only FinOps assistant for AWS: ask plain-English questions about your spend and get answers backed by AWS Cost Explorer, using Amazon Bedrock in your own account. If you don't run Amazon EKS, this Terraform kit deploys it on Amazon ECS with AWS Fargate instead.

Download

What it sets up

  • One Fargate task (0.25 vCPU, 1 GB) running the Cloud Cost Copilot image from your AWS Marketplace subscription

  • IAM roles with read-only Cost Explorer access, Bedrock invocation and the AWS Marketplace license check, and no write access to your resources

  • A CloudWatch log group with operational events only: no questions, answers or cost figures

  • Optionally a small VPC without a NAT gateway, or your own private subnets

Deploy in three steps

  1. Unzip, copy terraform.tfvars.example to terraform.tfvars, and set image to the image URI from your subscription.

  2. Run terraform init, then terraform apply.

  3. Run terraform output -raw connect | bash to open a secure tunnel, then browse to port 8080 on your own machine.

You need Terraform 1.5 or later, the AWS CLI v2, the Session Manager plugin, AWS Cost Explorer enabled, and Amazon Bedrock access to the model you choose.

Costs

About $12–14 a month for the Fargate task and its public IPv4 address in us-east-1, plus pay-per-use Amazon Bedrock and Cost Explorer API charges, typically well under $1 a month for a few questions. To pause it, set the service's desired count to 0.