Skip to main content

Overview

NetworkFactory creates VPC and networking infrastructure on AWS. Fjall configures networking automatically when you create an application. Use NetworkFactory directly when you need custom networking.

Automatic Networking

When you create an application, Fjall automatically provisions:

VPC Configuration

  • CIDR blocks: Managed by IPAM
  • Availability zones: Multi-AZ by default
  • Subnets: Public and private subnets per AZ
  • NAT gateways: For private subnet internet access
  • VPC endpoints: For AWS service access

Security Groups

  • Automatic rules: Based on resource connections
  • Least privilege: Only required ports opened
  • Dynamic updates: As resources are added

Load Balancers

  • Application Load Balancer: For ECS services
  • Target groups: Automatic health checks
  • SSL termination: With ACM certificates

Current Implementation

Through App Class

Through Compute Factory

Through Database Factory

Connection Management

Declare connections on a service and Fjall wires the security group rules:

NetworkFactory Usage

Basic Usage

Full Configuration

Parameters

Disabling NAT Gateways

For cost savings in development:

VPC Endpoints for Private Access

Reduce data transfer costs and improve security. Gateway endpoints support s3 and dynamodb. Interface endpoints support ecr, secretsManager, kms, ssm, sts, and cloudwatchLogs:

Transit Gateway Integration

Connect VPCs across accounts:

Best Practices

  1. Let Fjall manage networking - Automatic configuration handles most use cases
  2. Use IPAM - Prevents CIDR conflicts across accounts
  3. Multi-AZ deployment - Enabled by default for resilience
  4. Private subnets - Databases always in private subnets
  5. VPC endpoints - Reduces data transfer costs

Next Steps

Compute Factory

Deploy ECS and Lambda applications behind the VPC.

Database Factory

Provision Aurora, RDS, and DynamoDB in private subnets.

Storage Factory

Create S3 buckets with VPC gateway endpoint access.

Standard Pattern

Compose a full application with networking included.