mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-21 08:11:17 +02:00
feat: Ability to specify cluster update timeout (#1588)
This commit is contained in:
@@ -222,6 +222,7 @@ Apache 2 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraf
|
|||||||
| <a name="input_cluster_security_group_id"></a> [cluster\_security\_group\_id](#input\_cluster\_security\_group\_id) | If provided, the EKS cluster will be attached to this security group. If not given, a security group will be created with necessary ingress/egress to work with the workers | `string` | `""` | no |
|
| <a name="input_cluster_security_group_id"></a> [cluster\_security\_group\_id](#input\_cluster\_security\_group\_id) | If provided, the EKS cluster will be attached to this security group. If not given, a security group will be created with necessary ingress/egress to work with the workers | `string` | `""` | no |
|
||||||
| <a name="input_cluster_service_ipv4_cidr"></a> [cluster\_service\_ipv4\_cidr](#input\_cluster\_service\_ipv4\_cidr) | service ipv4 cidr for the kubernetes cluster | `string` | `null` | no |
|
| <a name="input_cluster_service_ipv4_cidr"></a> [cluster\_service\_ipv4\_cidr](#input\_cluster\_service\_ipv4\_cidr) | service ipv4 cidr for the kubernetes cluster | `string` | `null` | no |
|
||||||
| <a name="input_cluster_tags"></a> [cluster\_tags](#input\_cluster\_tags) | A map of tags to add to just the eks resource. | `map(string)` | `{}` | no |
|
| <a name="input_cluster_tags"></a> [cluster\_tags](#input\_cluster\_tags) | A map of tags to add to just the eks resource. | `map(string)` | `{}` | no |
|
||||||
|
| <a name="input_cluster_update_timeout"></a> [cluster\_update\_timeout](#input\_cluster\_update\_timeout) | Timeout value when updating the EKS cluster. | `string` | `"60m"` | no |
|
||||||
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Kubernetes version to use for the EKS cluster. | `string` | `null` | no |
|
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Kubernetes version to use for the EKS cluster. | `string` | `null` | no |
|
||||||
| <a name="input_create_eks"></a> [create\_eks](#input\_create\_eks) | Controls if EKS resources should be created (it affects almost all resources) | `bool` | `true` | no |
|
| <a name="input_create_eks"></a> [create\_eks](#input\_create\_eks) | Controls if EKS resources should be created (it affects almost all resources) | `bool` | `true` | no |
|
||||||
| <a name="input_create_fargate_pod_execution_role"></a> [create\_fargate\_pod\_execution\_role](#input\_create\_fargate\_pod\_execution\_role) | Controls if the EKS Fargate pod execution IAM role should be created. | `bool` | `true` | no |
|
| <a name="input_create_fargate_pod_execution_role"></a> [create\_fargate\_pod\_execution\_role](#input\_create\_fargate\_pod\_execution\_role) | Controls if the EKS Fargate pod execution IAM role should be created. | `bool` | `true` | no |
|
||||||
|
|||||||
1
main.tf
1
main.tf
@@ -47,6 +47,7 @@ resource "aws_eks_cluster" "this" {
|
|||||||
timeouts {
|
timeouts {
|
||||||
create = var.cluster_create_timeout
|
create = var.cluster_create_timeout
|
||||||
delete = var.cluster_delete_timeout
|
delete = var.cluster_delete_timeout
|
||||||
|
update = var.cluster_update_timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [
|
depends_on = [
|
||||||
|
|||||||
@@ -234,6 +234,12 @@ variable "cluster_delete_timeout" {
|
|||||||
default = "15m"
|
default = "15m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "cluster_update_timeout" {
|
||||||
|
description = "Timeout value when updating the EKS cluster."
|
||||||
|
type = string
|
||||||
|
default = "60m"
|
||||||
|
}
|
||||||
|
|
||||||
variable "cluster_create_security_group" {
|
variable "cluster_create_security_group" {
|
||||||
description = "Whether to create a security group for the cluster or attach the cluster to `cluster_security_group_id`."
|
description = "Whether to create a security group for the cluster or attach the cluster to `cluster_security_group_id`."
|
||||||
type = bool
|
type = bool
|
||||||
|
|||||||
Reference in New Issue
Block a user