Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Inputs

Name Description Type Default Required
description A description for the VPC string "VPC created by terraform" no
flow_log_settings Map of VPC Flow Logs settings
object({
log_destination_type = string,
enable_flow_log = bool,
traffic_type = string,
})
{
“enable_flow_log”: false,
“log_destination_type”: “s3”,
“traffic_type”: “ALL”
}
no
identifier Name of the VPC string n/a yes
kubernetes_tagging Set to true to enable kubernetes required tags for subnets bool false no
multi_nat_gw Set to true to create a nat gateway per availability zone, symmetrical subnets are required for best performance, try to avoid different subnet count between layers bool false no
region Region where the VPC will be deployed string n/a yes
s3_flow_log_bucket S3 bucket where flow logs will be sent string "" no
tags Tags to be applied to the resource map {} no
vpc_settings Map of AWS VPC settings
object({
application_subnets = list(string)
public_subnets = list(string)
data_subnets = list(string)
dns_hostnames = bool,
dns_support = bool,
tenancy = string,
cidr = string
})
{
“application_subnets”: [
“172.20.16.0/22”,
“172.20.20.0/22”
],
“cidr”: “172.20.0.0/16”,
“data_subnets”: [
“172.20.8.0/22”,
“172.20.12.0/22”
],
“dns_hostnames”: true,
“dns_support”: true,
“public_subnets”: [
“172.20.0.0/22”,
“172.20.4.0/22”
],
“tenancy”: “default”
}
no

Outputs

Name Description
output n/a