Skip to Content
Paxper Documentation is under active development. Check back often for updates!
GuidesAWS VPC Setup

AWS VPC Setup

A VPC (Virtual Private Cloud) is the private network your AWS resources run in. In Paxper, one VPC node on the canvas creates the whole network: the VPC itself, its subnets, the internet gateway, route tables and, if you want them, NAT gateways. Subnets and gateways are not separate nodes. You configure them in the VPC’s properties.

Most other resources, such as EC2 instances or databases, are placed in a VPC, so the VPC is usually the first resource you apply.

Before you start

  • A workspace connected to an AWS credential. See How to Create a Workspace.
  • A rough idea of your address range. The defaults work well for a first VPC.

1. Add the VPC

Open the Diagram tab and add a VPC from the resource panel (see Designing on the Canvas). Click the node to open its Properties panel.

VPC properties

2. Name it

Under General, set the Name, for example main-vpc. Paxper uses it as the name of every network resource the VPC creates, so you can recognize them in the AWS console.

3. Choose the address range and availability zones

Under Network:

  • CIDR Block – the IP range of the whole VPC, for example 10.25.0.0/20. The prefix must be between /16 (largest) and /28 (smallest).
  • Availability Zones – the zones your subnets are spread across. Paxper loads the zones of your region from your AWS account and pre-selects the first two (2 zones selected). Two zones are enough for most setups and keep your network available if one zone has a problem.
  • Enable IPv6 – adds an Amazon-provided IPv6 range. Leave it off unless you need IPv6.

4. Plan your subnets

A VPC can have three kinds of subnets. Enter one CIDR per availability zone for each kind you use, and leave a list empty to skip that kind.

Subnet typeWhat goes thereDefault (2 zones)
Public SubnetsResources that must be reachable from the internet, such as load balancers. Routed to the internet gateway.10.25.0.0/24, 10.25.1.0/24
Private SubnetsApplication servers and other resources that shouldn’t be reachable from the internet.10.25.10.0/24, 10.25.11.0/24
Database SubnetsDatabases, such as RDS.10.25.14.0/24, 10.25.15.0/24

Subnets and availability zones

Type a CIDR and press Enter to add it to a list. Every subnet must be inside the VPC’s CIDR block and must not overlap another subnet.

5. Decide on NAT gateways

Resources in private subnets can’t reach the internet on their own, for example to download updates. A NAT gateway gives them outbound access while keeping them unreachable from outside.

SettingUse it whenCost
Enable NAT Gateway offPrivate resources don’t need the internet, or you are trying things out.No NAT cost
Single NAT Gateway (shared)Development and test environments. One gateway serves all zones.One NAT gateway
One NAT Gateway per AZProduction. Each zone keeps internet access if another zone fails.One NAT gateway per zone

Enable NAT Gateway is on by default. NAT gateways are billed by the hour and for the data they process, even when nothing uses them. Turn NAT off if you don’t need it.

NAT Gateway settings

A NAT gateway needs at least one public subnet. With One NAT Gateway per AZ, you need at least one public subnet per zone.

6. Check the remaining settings

  • Enable DNS Support and Enable DNS Hostnames (both on, under Advanced) – let resources in the VPC resolve and get DNS names. Keep them on; many AWS services need them.
  • Tags – extra tags for every resource in the VPC. Paxper’s own tags are always added.

Click Save Properties.

Your availability zone selection is saved only when you click Save Properties. Check the zones again before you plan.

If a value isn’t valid, Paxper tells you before saving. Common messages:

MessageFix
Prefix must be between /16 and /28Use a smaller or larger range for the VPC or subnet.
Subnet … must be inside the VPC CIDR …Pick a subnet range inside the VPC’s CIDR block.
Subnet … overlaps with …Give each subnet its own range.
Subnet count (…) must match the number of availability zones (…)Enter exactly one subnet per selected zone for each subnet type.
Select at least one Availability Zone for the subnetsChoose at least one zone.
NAT Gateway requires at least one public subnet …Add public subnets or turn NAT off.

7. Plan and apply

Run a plan on the VPC (see Running a Plan). With the default settings and NAT turned off, the plan ends with Plan: 19 to add, 0 to change, 0 to destroy.:

ResourceCount
VPC1
Subnets (2 public, 2 private, 2 database)6
Internet gateway1
Route tables (public, private) and route-table associations2 + 6
Route from the public subnets to the internet1
VPC’s default network ACL and default route table (managed by Paxper)2

A single shared NAT gateway adds 3 resources (an Elastic IP, the NAT gateway and a route). One NAT gateway per zone adds these for every zone, plus a private route table per zone.

Plan for the VPC

If the plan looks right, apply it (see Applying and Destroying). When the job finishes, the VPC shows a green check mark on the canvas. You can now add resources that live in it.

Clean up

To remove the network, destroy the VPC. Destroy the resources placed in it first, because AWS doesn’t delete a VPC that is still in use.

Last updated on

With your permission, we use Google Analytics and Microsoft Clarity to analyze site traffic and record masked page interactions. You can change your choice using Cookie preferences in the footer. Privacy Policy