2021-01-28 15:04:01 +08:00
|
|
|
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
|
2021-01-28 16:36:32 +08:00
|
|
|
vpcflowlog-cwl-loggroup-key-arn = "arn:aws:kms:${var.aws-region}:${data.aws_caller_identity.this.account_id}:alias/${local.resource-prefix}-kmskey-default"
|
2021-01-28 15:04:01 +08:00
|
|
|
}
|