65 lines
1.3 KiB
Terraform
65 lines
1.3 KiB
Terraform
variable "resource-prefix" {
|
|
type = string
|
|
description = "Prefix of resource"
|
|
}
|
|
|
|
# VPC variables
|
|
variable "vpc-cidr" {
|
|
type = string
|
|
description = "VPC primary CIDR"
|
|
}
|
|
|
|
variable "private-subnet-cidrs" {
|
|
type = list(string)
|
|
description = "Private subnet CIDRs"
|
|
}
|
|
|
|
variable "public-subnet-cidrs" {
|
|
type = list(string)
|
|
description = "Public subnet CIDRs"
|
|
default = null
|
|
}
|
|
|
|
variable "create-nat-gateway" {
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "flow-log-destination" {
|
|
type = string
|
|
description = "Destination of flowlog. Valid destinations are s3 or cwlog"
|
|
default = null
|
|
}
|
|
|
|
variable "flow-log-bucket-arn" {
|
|
type = string
|
|
default = null
|
|
description = "Arn of S3 bucket to be used for flow logging"
|
|
}
|
|
|
|
variable "enable-flow-log" {
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "vpcflowlog-retain-days" {
|
|
type = number
|
|
default = 90
|
|
description = "Log retention period for CWlogs"
|
|
}
|
|
|
|
variable "vpcflowlog-cwl-loggroup-key-arn" {
|
|
type = string
|
|
description = "KMS key arn for cwlog encryption"
|
|
}
|
|
|
|
variable "create-free-vpc-endpoints" {
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "secondary_cidr_blocks" {
|
|
type = list(string)
|
|
description = "Additional cidr blocks"
|
|
default = []
|
|
} |