Skip to content

Example: ECS Deployment

{
"serviceName": "fraud-worker",
"taskDefinition": "fraud-worker:5",
"desiredCount": 1,
"launchType": "FARGATE",
"networkConfiguration": {
"awsvpcConfiguration": {
"subnets": ["subnet-123"],
"securityGroups": ["sg-123"],
"assignPublicIp": "ENABLED"
}
},
"tags": [
{ "key": "cost.clustercost.io/tenant", "value": "acme-co" },
{ "key": "cost.clustercost.io/service", "value": "fraud" }
]
}

Add the ClusterCost ECS agent sidecar to the same task definition, provide IAM access for ecs:Describe*, and the dashboard will attribute spend to the acme-co tenant automatically.