Skip to main content

astroctl_cloud_aws_generate-vpc

astroctl cloud aws generate-vpc

Generate VPC CloudFormation template

Synopsis

Generate a CloudFormation template for an EKS-compatible VPC.

This command creates a CloudFormation template that includes:

  • VPC with DNS support
  • Public and private subnets across availability zones
  • Internet Gateway and NAT Gateways
  • Route tables for public and private subnets
  • Required tags for EKS and Karpenter
astroctl cloud aws generate-vpc [flags]

Examples


# Generate VPC template for us-east-1
astroctl cloud aws generate-vpc --region us-east-1 --vpc-cidr 10.0.0.0/16 --cluster-name prod

# Generate and save to file
astroctl cloud aws generate-vpc --region us-east-1 --vpc-cidr 10.0.0.0/16 --cluster-name prod --output-file ./vpc.yaml

Options

-c, --cluster-name string Cluster name for tagging (required)
-h, --help help for generate-vpc
--output-file string Output file path (prints to stdout if not specified)
-r, --region string AWS region (required)
-v, --vpc-cidr string VPC CIDR block (required) (default "10.0.0.0/16")

Options inherited from parent commands

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO