sg, eks, iam 모듈추가

This commit is contained in:
2022-12-28 22:15:11 +09:00
parent 878bae5c65
commit 0b1946ecb3
25 changed files with 342 additions and 41 deletions

16
modules/eks/main.tf Normal file
View File

@ -0,0 +1,16 @@
resource "aws_eks_cluster" "demo" {
name = var.cluster-name
role_arn = aws_iam_role.demo-cluster.arn
enabled_cluster_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
vpc_config {
security_group_ids = [aws_security_group.demo-cluster.id]
subnet_ids = [
aws_subnet.VPC_HQ_public_1a.id,
aws_subnet.VPC_HQ_public_1c.id
]
endpoint_private_access = true
endpoint_public_access = true
}
}