private public add

This commit is contained in:
2023-01-10 09:29:59 +09:00
parent b325a26985
commit f0402956e2
17 changed files with 393 additions and 119 deletions

View File

@ -10,7 +10,7 @@ resource "aws_subnet" "subnets" {
tags = {
Name = var.vpc_name
"kubernetes.io/role/elb" = 1
"kubernetes.io/role/elb" = "${var.k8s_ingress ? 1 : 0}"
# Name = module.vpc_hq.vpcHq.id
}
}

View File

@ -33,4 +33,8 @@ variable "subnet-az-list" {
variable "public_ip_on" {
type = bool
}
variable "k8s_ingress" {
type = bool
}