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

# How do I use W&B Sweeps with cloud infrastructure?

To run a W\&B Sweep on cloud infrastructure such as AWS Batch or ECS, publish the `sweep_id` so that any W\&B Sweep agent can access it, and implement a method for these agents to read and execute the `sweep_id`.

For example, launch an Amazon EC2 instance and execute `wandb agent` on it. Use an SQS queue to broadcast the `sweep_id` to multiple EC2 instances. Each instance then reads the `sweep_id` from the queue and starts the process.

***

<Badge stroke shape="pill" color="orange" size="md">[Sweeps](/support/models/tags/sweeps)</Badge><Badge stroke shape="pill" color="orange" size="md">[AWS](/support/models/tags/aws)</Badge>
