mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 17:22:13 +01:00
Added timeout configs and variables to aws_eks_cluster resource (#149)
* Added timeout configs and variables * Updated CHANGELOG and README * Added timeout configs and variables * Updated CHANGELOG and README * Changed variable names for consistency * Updated README.md * Did terraform fmt
This commit is contained in:
committed by
Max Williams
parent
77a7690b1c
commit
0ee9d633d3
@@ -11,6 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
- A useful addition (slam dunk, @self 🔥)
|
||||
- Worker groups can be created with a specified IAM profile. (from @laverya)
|
||||
- exposed `aws_eks_cluster` create and destroy timeouts (by @RGPosadas)
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@@ -98,6 +98,8 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
||||
|
||||
| Name | Description | Type | Default | Required |
|
||||
|------|-------------|:----:|:-----:|:-----:|
|
||||
| cluster_create_timeout | Timeout value when creating the EKS cluster. | string | `15m` | no |
|
||||
| cluster_delete_timeout | Timeout value when deleting the EKS cluster. | string | `15m` | no |
|
||||
| cluster_name | Name of the EKS cluster. Also used as a prefix in names of related resources. | string | - | yes |
|
||||
| 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 ingres/egress to work with the workers and provide API access to your current IP/32. | string | `` | no |
|
||||
| cluster_version | Kubernetes version to use for the EKS cluster. | string | `1.10` | no |
|
||||
|
||||
@@ -8,6 +8,11 @@ resource "aws_eks_cluster" "this" {
|
||||
subnet_ids = ["${var.subnets}"]
|
||||
}
|
||||
|
||||
timeouts {
|
||||
create = "${var.cluster_create_timeout}"
|
||||
delete = "${var.cluster_delete_timeout}"
|
||||
}
|
||||
|
||||
depends_on = [
|
||||
"aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy",
|
||||
"aws_iam_role_policy_attachment.cluster_AmazonEKSServicePolicy",
|
||||
|
||||
10
variables.tf
10
variables.tf
@@ -123,3 +123,13 @@ variable "kubeconfig_name" {
|
||||
description = "Override the default name used for items kubeconfig."
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "cluster_create_timeout" {
|
||||
description = "Timeout value when creating the EKS cluster."
|
||||
default = "15m"
|
||||
}
|
||||
|
||||
variable "cluster_delete_timeout" {
|
||||
description = "Timeout value when deleting the EKS cluster."
|
||||
default = "15m"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user