mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-20 07:41:18 +02:00
Add support for eks endpoint_private_access and endpoint_public_access (#314)
This commit is contained in:
committed by
Max Williams
parent
97c79643fb
commit
806edb6001
@@ -11,6 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Added support for eks public and private endpoints (by @stijndehaes)
|
||||||
- Write your awesome addition here (by @you)
|
- 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)
|
- 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)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ resource "aws_eks_cluster" "this" {
|
|||||||
version = "${var.cluster_version}"
|
version = "${var.cluster_version}"
|
||||||
|
|
||||||
vpc_config {
|
vpc_config {
|
||||||
security_group_ids = ["${local.cluster_security_group_id}"]
|
security_group_ids = ["${local.cluster_security_group_id}"]
|
||||||
subnet_ids = ["${var.subnets}"]
|
subnet_ids = ["${var.subnets}"]
|
||||||
|
endpoint_private_access = "${var.cluster_endpoint_private_access}"
|
||||||
|
endpoint_public_access = "${var.cluster_endpoint_public_access}"
|
||||||
}
|
}
|
||||||
|
|
||||||
timeouts {
|
timeouts {
|
||||||
|
|||||||
10
variables.tf
10
variables.tf
@@ -241,3 +241,13 @@ variable "iam_path" {
|
|||||||
description = "If provided, all IAM roles will be created on this path."
|
description = "If provided, all IAM roles will be created on this path."
|
||||||
default = "/"
|
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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user