Your cloud resources and costs
What Cua creates in your AWS, Google Cloud or Modal account, what it costs per hour, and the notes for each cloud.
What Cua creates in your AWS, Google Cloud or Modal account, what it costs per hour, and the notes for each cloud.
Details for Use your own cloud.
| Cloud | Per sandbox | Shared |
|---|---|---|
| AWS | One EC2 instance and its disk. Docker runs the image on it. | One security group with no inbound rules, in the region's default VPC. |
| Google Cloud | One Compute Engine instance and its disk. Docker runs the image on it. | A network with no inbound rules, so the project's default firewall rules never apply to it. |
| Modal | One Modal sandbox running the image. | Nothing. |
Nothing else is created: no IAM users or keys, no change to existing networks, security groups or firewall rules.
The VM installs only Docker. The image carries its own cua-spacesd.
Every resource carries these tags (labels on Google Cloud):
| Tag | Value |
|---|---|
cua-managed | true |
cua-owner | This cua home's owner id |
cua-space | The sandbox's name |
cua-machine | Its relay machine |
cua-created-by | The cua version |
cua-expires | When it expires (Unix seconds) |
Every resource is recorded in ~/.cua/cloud/state.json before the cloud call,
with its cloud id once it has one.
cua cloud status shows the estimated on-demand price of each image family
per hour while it runs (compute and disk, not network). A stopped VM bills only
its disk.
| Cloud | linux | linux-slim |
|---|---|---|
| AWS | t4g.medium (arm64), about $0.04/hour | t4g.small, about $0.03/hour |
| Google Cloud | e2-medium, about $0.04/hour | e2-small, about $0.03/hour |
| Modal | 1 core (2 vCPU) and 4 GiB, about $0.24/hour | the same |
cua cloud status
says so next to them.--region, else the profile's). Profiles, SSO
and assume-role profiles from ~/.aws work as the AWS CLI's do.cua cloud test aws does not read
it yet; a create past it fails with AWS's own message.--project, --region, --zone).cua cloud test gcp says when the Compute Engine API is disabled.--environment) and a ~/.modal.toml
profile (--profile).--runtime microvm uses Modal's VM
runtime. Neither has /dev/kvm, so only Linux images run.cua-modal-helper, which uses Modal's official
Go SDK. Build it with go build in
libs/cua/crates/cua-contrib/modal-helper and put it next to cua, on
PATH, or in CUA_MODAL_HELPER.