terraform.aws-baseline-infra/modules/networking/vpc-subnet-manual/variables.tf

63 lines
1.4 KiB
Terraform
Raw Normal View History

variable "resource-prefix" {}
# VPC variables
2024-02-09 10:31:43 +08:00
variable "vpc-cidr" {
type = string
description = "CIDR of VPC to be created"
}
variable "private-subnet-cidrs" {
2024-02-09 10:31:43 +08:00
description = "List of private subnet cidrs"
type = list(string)
}
variable "public-subnet-cidrs" {
2024-02-09 10:31:43 +08:00
description = "List of public subnet cidrs"
type = list(string)
}
variable "create-nat-gateway" {
2024-02-09 10:31:43 +08:00
description = "Set true to deploy NAT gateway"
type = bool
default = false
}
2024-02-09 10:31:43 +08:00
variable "enable-flow-log" {
2024-02-09 10:31:43 +08:00
description = "Set true to deploy vpc flowlog"
type = bool
default = true
}
2024-02-09 10:31:43 +08:00
variable "vpcflowlog-retain-days" {
2024-02-09 10:31:43 +08:00
description = "Days to retain flowlog"
type = number
default = 90
}
2024-02-09 10:31:43 +08:00
variable "vpcflowlog-cwl-loggroup-key-arn" {
description = "CWL log group encryption key arn"
type = string
}
variable "create-free-vpc-endpoints" {
2024-02-09 10:31:43 +08:00
description = "Set true to deploy s3 and dynamodb endpoints, which are free"
type = bool
default = true
}
2024-02-09 10:31:43 +08:00
variable "secondary_cidr_blocks" {
type = list(string)
description = "Additional cidr blocks"
default = []
}
variable "num_azs" {
description = "By default, use 2 AZs for redundancy"
type = number
default = 2
}
variable "log-group-class" {
description = "Log group class for flowlog cloudwatch log group, which can be STANDARD or INFREQUENT_ACCESS"
type = string
default = "STANDARD"
}