Skip to content

Commit

Permalink
Add support for eks endpoint_private_access and endpoint_public_access (
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndehaes authored and max-rocket-internet committed Mar 25, 2019
1 parent 97c7964 commit 806edb6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Added support for eks public and private endpoints (by @stijndehaes)
- Write your awesome addition here (by @you)
- Added minimum inbound traffic rule to the cluster worker security group as per the [EKS security group requirements](https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html) (by @sc250024)

Expand Down
6 changes: 4 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ resource "aws_eks_cluster" "this" {
version = "${var.cluster_version}"

vpc_config {
security_group_ids = ["${local.cluster_security_group_id}"]
subnet_ids = ["${var.subnets}"]
security_group_ids = ["${local.cluster_security_group_id}"]
subnet_ids = ["${var.subnets}"]
endpoint_private_access = "${var.cluster_endpoint_private_access}"
endpoint_public_access = "${var.cluster_endpoint_public_access}"
}

timeouts {
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,13 @@ variable "iam_path" {
description = "If provided, all IAM roles will be created on this path."
default = "/"
}

variable "cluster_endpoint_private_access" {
description = "Indicates whether or not the Amazon EKS private API server endpoint is enabled."
default = false
}

variable "cluster_endpoint_public_access" {
description = "Indicates whether or not the Amazon EKS public API server endpoint is enabled."
default = true
}

0 comments on commit 806edb6

Please sign in to comment.