# Creating the Cluster

After creating the Task Definition, we can now create a Cluster.

## Creating a Fargate Cluster

Select the `Networking only` cluster template.

### Configure cluster

Enter the cluster name.

### Networking

If you don't already have a VPC setup, it's good practice to create one.

&#x20;An example VPC would have 4 subnets, 2 meant to be private, and 2 meant to be public.&#x20;

Example:

CIDR block `10.0.0.0/16` \
Subnet 1: `10.0.0.0/24`\
Subnet 2: `10.0.1.0/24`\
Subnet 3: `10.0.2.0/24`\
Subnet 4: `10.0.3.0/24`&#x20;

You would then navigate to the VPC service and:&#x20;

1. Create route table for each of the two subnets chosen to be public facing and route 0.0.0.0/0 to the VPC's internet gateway.&#x20;
2. Create NAT gateways for the public facing subnets.
3. Create route tables for the private subnets and add a 0.0.0.0/0 routes to the NAT gateways.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devs.peerplays.com/tools-and-integrations/peerid/1.0.0/infrastructure/deployment-to-aws-ecs/creating-the-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
