terraform.aws-baseline-infra/layers/networking/base-network/main.tf
2021-01-28 16:36:32 +08:00

17 lines
629 B
HCL

data aws_caller_identity this {}
module networking-vpc-subnets {
source = "../../../modules/networking/vpc_subnets"
application = var.application
environment = var.environment
customer-name = var.customer-name
project = var.project
default-tags = local.default-tags
number-of-private-subnets-per-az = 2
number-of-public-subnets-per-az = 1
create-nat-gateway = true
vpc-cidr = "10.2.0.0/16"
aws-region-short = "apne1"
aws-region = var.aws-region
vpcflowlog-cwl-loggroup-key-arn = "arn:aws:kms:${var.aws-region}:${data.aws_caller_identity.this.account_id}:alias/${local.resource-prefix}-kmskey-default"
}