# Cloud World Model – Deploy ECS Fargate Resource

> Cloud World Model – Deploy ECS Fargate Resource is a paid API for AI agents from www.cloudworldmodel.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Triggers a rolling deployment of a simulated ECS Fargate service within a Cloud World Model simulation, replacing tasks in configurable batch sizes without provisioning real AWS infrastructure.

## Facts

- Endpoint: POST https://www.cloudworldmodel.ai/api/simulations/%7BsimulationId%7D/deploy
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-world-model-deploy-ecs-fargate-resource-50a73582
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gwf-Xv4hXW5W2bgK6zF6c

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cloud-world-model-deploy-ecs-fargate-resource-50a73582 -d '<json body>'
```

Example prompt: In my Cloud World Model simulation sim-abc123, kick off a rolling deployment for the Fargate service named fargate-service-01 and replace tasks in batches of 2.

## When to prefer this

Use this endpoint when you need to simulate a rolling ECS Fargate deployment inside a Cloud World Model sandbox — ideal for AI agent training, cloud education, DevOps practice, or RL environment stepping — without provisioning or paying for real AWS resources. Prefer it over real AWS deployment APIs when cost, safety, or repeatability is a concern.

## Known failure modes

- 404 if resourceName not found in the simulation
- simulationId not found returns an error
- both resourceId and resourceName omitted may cause ambiguity or error
- invalid maxSurge value (< 1) rejected by schema validation
- payment failure (402) if USDC balance is insufficient

## How this service works

Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.

## Output

Returns a JSON object containing a deployment event (with event ID, human-readable message, severity level, and simulation ID), the updated simulation state with current resources, and the deployed resource's ID and name.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxSurge": {
   "type": "integer",
   "minimum": 1,
   "description": "New tasks per batch (default 1). Each batch warms through taskStartupSeconds before the corresponding old tasks drain."
  },
  "resourceId": {
   "type": "string",
   "description": "ID of the ecsFargate resource to deploy. Takes precedence over resourceName."
  },
  "resourceName": {
   "type": "string",
   "description": "Human-readable name of the ecsFargate resource to deploy. 404 if not found."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "event": {
   "id": "evt-id",
   "message": "fargate-service-01: rolling deployment started — replacing 4 tasks in batches of 1",
   "severity": "info",
   "simulationId": "sim-abc123"
  },
  "simulation": {
   "id": "sim-abc123",
   "resources": []
  },
  "deployedResourceId": "res-1",
  "deployedResourceName": "fargate-service-01"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-world-model-deploy-ecs-fargate-resource-50a73582/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.cloudworldmodel.ai](https://www.zero.xyz/host/www.cloudworldmodel.ai/llms.txt)
