Skip to content

Commit 686193e

Browse files
authored
feat: Add var.wait_for_cluster_timeout to allow configuring the wait for cluster timeout (#1420)
1 parent 6ad4405 commit 686193e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ Apache 2 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraf
266266
| <a name="input_subnets"></a> [subnets](#input\_subnets) | A list of subnets to place the EKS cluster and workers within. | `list(string)` | n/a | yes |
267267
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources. Tags added to launch configuration or templates override these values for ASG Tags only. | `map(string)` | `{}` | no |
268268
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC where the cluster and workers will be deployed. | `string` | n/a | yes |
269+
| <a name="input_wait_for_cluster_timeout"></a> [wait\_for\_cluster\_timeout](#wait\_for\_cluster\_timeout) | Allows for a configurable timeout (in seconds) when waiting for a cluster to come up | `number` | `300` | no |
269270
| <a name="input_worker_additional_security_group_ids"></a> [worker\_additional\_security\_group\_ids](#input\_worker\_additional\_security\_group\_ids) | A list of additional security group ids to attach to worker instances | `list(string)` | `[]` | no |
270271
| <a name="input_worker_ami_name_filter"></a> [worker\_ami\_name\_filter](#input\_worker\_ami\_name\_filter) | Name filter for AWS EKS worker AMI. If not provided, the latest official AMI for the specified 'cluster\_version' is used. | `string` | `""` | no |
271272
| <a name="input_worker_ami_name_filter_windows"></a> [worker\_ami\_name\_filter\_windows](#input\_worker\_ami\_name\_filter\_windows) | Name filter for AWS EKS Windows worker AMI. If not provided, the latest official AMI for the specified 'cluster\_version' is used. | `string` | `""` | no |

data.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ data "http" "wait_for_cluster" {
9090
count = var.create_eks && var.manage_aws_auth ? 1 : 0
9191
url = format("%s/healthz", aws_eks_cluster.this[0].endpoint)
9292
ca_certificate = base64decode(coalescelist(aws_eks_cluster.this[*].certificate_authority[0].data, [""])[0])
93-
timeout = 300
93+
timeout = var.wait_for_cluster_timeout
9494

9595
depends_on = [
9696
aws_eks_cluster.this,

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,9 @@ variable "workers_egress_cidrs" {
387387
type = list(string)
388388
default = ["0.0.0.0/0"]
389389
}
390+
391+
variable "wait_for_cluster_timeout" {
392+
description = "A timeout (in seconds) to wait for cluster to be available."
393+
type = number
394+
default = 300
395+
}

0 commit comments

Comments
 (0)