2021-01-28 15:04:01 +08:00
|
|
|
variable "customer-name" {}
|
|
|
|
variable "environment" {}
|
|
|
|
variable "project" {}
|
|
|
|
variable "application" {}
|
|
|
|
variable "default-tags" {}
|
|
|
|
variable "aws-region" {}
|
|
|
|
|
|
|
|
locals {
|
2022-12-12 11:18:38 +08:00
|
|
|
resource-prefix = "${var.environment}-${substr(var.aws-region, 0, 2)}-${var.customer-name}-${var.project}"
|
2021-01-28 15:04:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# VPC variables
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "vpc-cidr" {}
|
2022-12-12 12:56:33 +08:00
|
|
|
|
2021-01-28 16:36:32 +08:00
|
|
|
variable number-of-public-subnets-per-az {
|
|
|
|
type = number
|
|
|
|
default = 0
|
|
|
|
}
|
|
|
|
variable number-of-private-subnets-per-az {
|
|
|
|
type = number
|
|
|
|
default = 0
|
|
|
|
}
|
2022-12-12 12:56:33 +08:00
|
|
|
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "create-nat-gateway" {
|
|
|
|
type = bool
|
2021-01-28 16:36:32 +08:00
|
|
|
default = false
|
|
|
|
}
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "enable-flow-log" {
|
|
|
|
type = bool
|
2021-01-28 15:04:01 +08:00
|
|
|
default = true
|
|
|
|
}
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "vpcflowlog-retain-days" {
|
|
|
|
type = number
|
2021-01-28 15:04:01 +08:00
|
|
|
default = 90
|
2021-01-28 16:36:32 +08:00
|
|
|
}
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "vpcflowlog-cwl-loggroup-key-arn" {}
|
2022-12-12 12:56:33 +08:00
|
|
|
# variable "private-subnet-cidrs" {}
|
|
|
|
# variable "public-subnet-cidrs" {}
|
2022-12-12 11:18:38 +08:00
|
|
|
variable "create-free-vpc-endpoints" {
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
}
|