> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorcost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What runs where

> See what a BYOC install puts in your AWS account, what stays there, and the few things that still reach TensorCost.

## What runs in your account

The install creates everything in your AWS account. You do not bring a database or cache. In the diagram, everything inside the box is yours; the only arrows that cross it are your own calls to an AI provider and TensorCost's container images and install files coming in.

```mermaid theme={null}
flowchart LR
  users["Your users and apps"] --> cf
  subgraph acct["Your AWS account"]
    cf["CloudFront<br/>console, API, proxy"] --> alb["Load balancer<br/>CloudFront only"]
    alb --> ecs["TensorCost services<br/>ECS Fargate"]
    ecs --> rds[("RDS PostgreSQL")]
    ecs --> redis[("ElastiCache Redis")]
    ecs --> s3["S3 buckets"]
    ecs --> sm["Secrets Manager"]
    ecs --> cw["CloudWatch and SNS"]
  end
  ecs -->|"proxied calls, with your provider key"| prov["AI providers"]
  tc["TensorCost<br/>public image registry<br/>and install files"] -->|"pulled in"| ecs
```

| Layer | What it is |
| - | - |
| Network | A VPC across two availability zones. The load balancer accepts traffic only from CloudFront |
| Edge | CloudFront serves the console and forwards API, proxy and live-event traffic to the load balancer. TLS ends here, using your certificate |
| Compute | TensorCost's services as containers on ECS Fargate. The size your install is set up at decides each service's CPU, memory and task count. At sizes L and XL the gateway, the proxy and ai-service scale on CPU |
| Database | Amazon RDS for PostgreSQL, multi-AZ, encrypted with a key you own, with 14 days of automated backups |
| Cache | Amazon ElastiCache for Redis, single node, encrypted. Treated as disposable |
| Storage | S3 buckets for artifacts and exports |
| Secrets | AWS Secrets Manager for credentials and signing keys |
| Monitoring | A CloudWatch dashboard, alarms on errors, latency, unhealthy hosts, database CPU, stopped or stuck services and background work, and an SNS topic you subscribe to. See [Running the install](https://docs.tensorcost.com/byoc/operations.md) |

Capacity follows the size the install is set up at. At the two largest sizes the services on every call's path add and remove tasks on CPU by themselves; at the smaller sizes the counts are fixed. Ask the TensorCost team if you expect heavy traffic. See [Scaling](https://docs.tensorcost.com/byoc/operations.md#scaling).

## What stays in your account

* Spend data, the audit log and all workspace configuration live in your database.
* Logs go to CloudWatch in your account.
* Backups are your RDS automated snapshots. A final snapshot is taken if the database is deleted.
* TensorCost has no cross-account role, no standing access and no remote shell. For support you send diagnostics and, if you choose, open temporary access yourself and close it afterwards.

## What still reaches TensorCost

| Traffic | When | What |
| - | - | - |
| Container pulls | Every time a task starts | Your account pulls TensorCost's container images from a public registry. Allow outbound access to it, or ask us about mirroring |
| Install files | At install and upgrade | The console bundle and deployment templates are fetched from TensorCost |
| Vendor telemetry | Off. Opt-in only | Hourly aggregate counters, never row-level data. It is not running on the current AWS install |

The licence is a signed file checked inside your account. Nothing contacts TensorCost to validate it. Product analytics, error reporting and card billing are disabled in BYOC.

> [!NOTE]
>
> The resources the install creates carry an AWS partner tag that links them to TensorCost for AWS partner reporting. It carries no data from your workspace.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.