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

@ -1,5 +1,5 @@
output "ng_sg" {
description = "Identifier of the remote access EC2 Security Group."
value = "${aws_eks_node_group.eks-ng.resources[0].remote_access_security_group_id}"
}
description = "Identifier of the remote access EC2 Security Group."
value = aws_eks_node_group.eks-ng.resources
}

View File

@ -3,7 +3,12 @@ variable "name" {
type = string
}
variable "name" {
variable "public" {
description = "route53 name"
type = bool
}
variable "vpc_id" {
description = "vpc_id"
type = string
}

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
}