Skip to content

Instantly share code, notes, and snippets.

@phivid
Last active January 7, 2020 06:44
Show Gist options
  • Save phivid/ce6c2db0039a2bfd794d00a2ed604fda to your computer and use it in GitHub Desktop.
Save phivid/ce6c2db0039a2bfd794d00a2ed604fda to your computer and use it in GitHub Desktop.
terraform_eks_cluster
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