Usage
module "vpc" {
source = "github.com/fencepencil/fencepencil-aws-modules//vpc"
name = "<name>"
availability_zones = ["<value>"]
private_subnet_cidrs = ["<value>"]
public_subnet_cidrs = ["<value>"]
tags = var.tags
}Inputs (9)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name | string | Name for the VPC and resource prefix | — | yes |
vpc_cidr | string | CIDR block for the VPC | 10.0.0.0/16 | no |
availability_zones | list(string) | List of availability zones | — | yes |
private_subnet_cidrs | list(string) | CIDR blocks for private subnets | — | yes |
public_subnet_cidrs | list(string) | CIDR blocks for public subnets | — | yes |
enable_nat_gateway | bool | Enable NAT Gateway for private subnets | true | no |
single_nat_gateway | bool | Use a single NAT Gateway (cost savings) | true | no |
enable_eks_tags | bool | Add kubernetes.io tags for EKS auto-discovery | false | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (5)
| Name | Description |
|---|---|
vpc_id | The ID of the VPC |
vpc_cidr_block | The CIDR block of the VPC |
private_subnet_ids | List of private subnet IDs |
public_subnet_ids | List of public subnet IDs |
nat_gateway_ids | List of NAT Gateway IDs |