This commit is contained in:
2023-01-11 01:31:56 +09:00
parent f0402956e2
commit c96cac92b9
42 changed files with 746 additions and 265 deletions

View File

@ -9,8 +9,8 @@ resource "aws_subnet" "subnets" {
map_public_ip_on_launch = var.public_ip_on ? true : false
tags = {
Name = var.vpc_name
Name = "${var.public_ip_on ? "22shop-eks-public" : "22shop-eks-private"}"
"kubernetes.io/role/elb" = "${var.k8s_ingress ? 1 : 0}"
# Name = module.vpc_hq.vpcHq.id
"kubernetes.io/role/internal-elb" = "${var.k8s_ingress ? 0 : 1}"
}
}

View File

@ -31,6 +31,7 @@ variable "subnet-az-list" {
# }
}
variable "public_ip_on" {
type = bool
}