테라폼 환경 수정

This commit is contained in:
2022-12-31 17:52:18 +09:00
parent 2281b27e7a
commit 7f4d9b1104
34 changed files with 732 additions and 102 deletions

View File

@ -6,10 +6,25 @@ resource "aws_eks_cluster" "eks-cluster" {
vpc_config {
security_group_ids = var.sg_list
subnet_ids = var.subnet_list
subnet_ids = var.subnet_list
#노드그룹 통신을 위한 설정
endpoint_private_access = true
endpoint_public_access = true
}
}
# //신뢰할수있는 사용자 등록
# resource "aws_eks_identity_provider_config" "eks-cluster-oidc-provider" {
# cluster_name = aws_eks_cluster.eks-cluster.name
# oidc {
# client_id = var.client_id
# identity_provider_config_name = "eks-example"
# issuer_url = "${aws_eks_cluster.eks-cluster.identity[0].oidc[0].issuer}"
# }
# depends_on = [
# aws_eks_cluster.eks-cluster
# ]
# }