{"uid":"cap_Gwf-Xv4hXW5W2bgK6zF6c","slug":"cloud-world-model-deploy-ecs-fargate-resource-50a73582","name":"Cloud World Model – Deploy ECS Fargate Resource","description":"Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.","url":"https://www.cloudworldmodel.ai/api/simulations/%7BsimulationId%7D/deploy","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pAV3PPbe6_3vDChV6CjSk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Practice ECS rolling deployment strategy","prompt":"I'm learning AWS on Cloud World Model — can you start a rolling deployment for the Fargate service called 'api-backend' in simulation sim-xyz789, deploying 1 new task per batch so I can watch the drain behavior?"},{"title":"Test high-surge deployment in sandbox","prompt":"In my Cloud World Model sim sim-train-42, deploy the ECS Fargate resource with ID res-007 using a maxSurge of 3 so I can see how fast a high-throughput rollout completes without touching real AWS."},{"title":"Validate deployment event output for RL agent","prompt":"My RL training loop needs a deployment event to step through — trigger a rolling deploy on 'worker-service' in simulation sim-rl-99 with batches of 1 task and return the event details."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:30:41.150Z","isFirstParty":false}