File size: 1,445 Bytes
7c19d46 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | # VPC Module Variables
variable "name" {
description = "VPC name prefix"
type = string
}
variable "cidr_block" {
description = "VPC CIDR block"
type = string
default = "10.0.0.0/16"
}
variable "public_subnet_cidrs" {
description = "List of public subnet CIDRs"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "private_subnet_cidrs" {
description = "List of private subnet CIDRs"
type = list(string)
default = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
}
variable "database_subnet_cidrs" {
description = "List of database subnet CIDRs"
type = list(string)
default = ["10.0.201.0/24", "10.0.202.0/24", "10.0.203.0/24"]
}
variable "nat_gateway_count" {
description = "Number of NAT Gateways (1 per AZ for HA)"
type = number
default = 3
}
variable "enable_ipv6" {
description = "Enable IPv6 dual-stack"
type = bool
default = false
}
variable "eks_cluster_name" {
description = "EKS cluster name for subnet tags"
type = string
}
variable "flow_log_s3_arn" {
description = "S3 bucket ARN for VPC flow logs"
type = string
}
variable "flow_log_retention_days" {
description = "CloudWatch flow log retention in days"
type = number
default = 90
}
variable "tags" {
description = "Common tags"
type = map(string)
default = {}
}
|