sg, eks, iam 모듈추가
This commit is contained in:
16
modules/eks/main.tf
Normal file
16
modules/eks/main.tf
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user