Last active
January 7, 2020 06:44
-
-
Save phivid/ce6c2db0039a2bfd794d00a2ed604fda to your computer and use it in GitHub Desktop.
terraform_eks_cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_eks_cluster" "example" { | |
depends_on = [aws_cloudwatch_log_group.example] | |
enabled_cluster_log_types = ["api", "audit"] | |
name = var.cluster_name | |
role_arn = aws_iam_role.eks-cluster.arn | |
vpc_config { | |
subnet_ids = data.aws_subnet_ids.all.ids | |
endpoint_private_access = true | |
endpoint_public_access = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment