Network behavior and limits
The Network is the VPC or VNet a deployment runs in. The same alien.ts deploys into any customer network, and Alien never changes a network it doesn't own.
Guarantees
Generated, not declared. Alien adds the Network from stack settings when the stack needs one. Your alien.ts stays the same across customer network setups.
Frozen. The customer's admin creates the Network during initial setup. The management identity can't change it during ongoing management.
BYO means no ownership transfer. In the BYO modes, Alien references and validates existing infrastructure. It doesn't create, change, or delete the VPC or VNet, or add NAT, routes, firewall rules, or peering.
The mode is fixed. Changing from one mode to another, such as create to byo-vpc-aws, is rejected as an invalid update.
create cleans up. Everything Alien created for the network is deleted with the deployment.
Limits
| Limit | Value | Notes |
|---|---|---|
Declared in alien.ts | Never | Configure through stack settings or CLI flags. |
| Availability zones | Default 2 | Setup templates on AWS support 1 to 3. |
| Created VPC or VNet | /16 by default | See CIDR selection. |
| Mode changes | Not allowed | Create a new deployment instead. |
| Egress in BYO modes | Owned by the network owner | Alien creates no NAT, proxy, or VPN. |
| Endpoint access | Fixed at initial setup | private is AWS managed containers only. |
CIDR selection
When cidr is omitted in create mode, the default depends on who provisions the network.
Setup templates (CloudFormation and Terraform) use a fixed default, which the customer can override with the template's VPC CIDR parameter:
| Cloud | Default CIDR |
|---|---|
| AWS | 10.42.0.0/16 |
| GCP | 10.44.0.0/16 |
| Azure | 10.46.0.0/16 |
Alien provisioning directly picks a /16 that avoids other networks:
- AWS: lists the account's VPCs and takes the first free
/16, trying100.64.0.0/10first (starting at an offset derived from the stack id), then172.16.0.0/12, then10.0.0.0/8. That's 336 candidates. - GCP and Azure: derives a
/16in100.64.0.0/10from the network id.
Set cidr explicitly when the customer will peer the network with others or route to it over a VPN.
Subnet layout
| Cloud | Subnets in create mode |
|---|---|
| AWS, setup templates | One public and one private /24 per zone, and one NAT Gateway shared by the private subnets. |
| AWS, direct | One public and one private /20 per zone. Public subnets start at the bottom of the range, private ones at .128.0. |
| GCP | One regional subnet covering the network CIDR, a Cloud Router, Cloud NAT, and a firewall rule that allows internal TCP, UDP, and ICMP from the network CIDR. |
| Azure | /24 subnets carved from the VNet: public, private, Application Gateway, Private Endpoint, and Container Apps. A NAT Gateway with one public IP, and a Network Security Group. |
Sandboxes with restricted egress add their own subnets inside the network.
Platforms
AWS
createcreates a VPC with DNS support and hostnames, public and private subnets, route tables, an Internet Gateway, a NAT Gateway, and a security group.use-defaultuses the account's default VPC and its public subnets. Instances get public IPs.byo-vpc-awsstores the VPC, subnet, and security group references.
GCP
createcreates a custom VPC network, a regional subnetwork, a Cloud Router, Cloud NAT, and a firewall rule.use-defaultuses the project'sdefaultnetwork and regional subnet.byo-vpc-gcpstores the network, subnet, and region.
Azure
- Azure has no default VNet.
use-defaultcreates a VNet and NAT Gateway instead of attaching to a cloud default. createcreates a VNet, subnets, a NAT Gateway, a public IP, and a Network Security Group.byo-vnet-azurestores the VNet resource id and subnet names. A Postgres needsprivate_endpoint_subnet_name.
Kubernetes, Machines, Local
The cluster operator or host provides the network. Alien creates no VPC or VNet, except for Kubernetes on a cloud when the stack has a Postgres or an Alien-managed cluster.
Design decisions
Configured outside alien.ts. The same application deploys into different customer network topologies without changing the stack.
create is the production default. Alien owns the network it needs to create, update, and delete, and isolates the deployment from the customer's other workloads.
BYO keeps responsibility with the customer. Alien never adds NAT, routing, firewall, or peering rules to a network it doesn't own.