terraform.aws-baseline-infra/modules/networking/vpc_subnets/variables.tf

42 lines
867 B
Terraform
Raw Normal View History

2021-01-28 15:04:01 +08:00
variable "customer-name" {}
variable "environment" {}
variable "project" {}
variable "application" {}
variable "default-tags" {}
variable "aws-region" {}
locals {
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
variable "vpc-cidr" {}
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
}
variable "create-nat-gateway" {
type = bool
2021-01-28 16:36:32 +08:00
default = false
}
variable "enable-flow-log" {
type = bool
2021-01-28 15:04:01 +08:00
default = true
}
variable "vpcflowlog-retain-days" {
type = number
2021-01-28 15:04:01 +08:00
default = 90
2021-01-28 16:36:32 +08:00
}
variable "vpcflowlog-cwl-loggroup-key-arn" {}
# variable "private-subnet-cidrs" {}
# variable "public-subnet-cidrs" {}
variable "create-free-vpc-endpoints" {
type = bool
default = true
}