mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-01 23:13:07 +02:00
feat: Cluster version is now a required variable. (#972)
BREAKING CHANGES: `cluster_version` variable is now required.
This commit is contained in:
@@ -172,7 +172,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
|||||||
| cluster\_log\_retention\_in\_days | Number of days to retain log events. Default retention - 90 days. | `number` | `90` | no |
|
| cluster\_log\_retention\_in\_days | Number of days to retain log events. Default retention - 90 days. | `number` | `90` | no |
|
||||||
| cluster\_name | Name of the EKS cluster. Also used as a prefix in names of related resources. | `string` | n/a | yes |
|
| cluster\_name | Name of the EKS cluster. Also used as a prefix in names of related resources. | `string` | n/a | 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 ingress/egress to work with the workers | `string` | `""` | no |
|
| 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 |
|
||||||
| cluster\_version | Kubernetes version to use for the EKS cluster. | `string` | `"1.16"` | no |
|
| cluster\_version | Kubernetes version to use for the EKS cluster. | `string` | n/a | yes |
|
||||||
| config\_output\_path | Where to save the Kubectl config file (if `write_kubeconfig = true`). Assumed to be a directory if the value ends with a forward slash `/`. | `string` | `"./"` | no |
|
| config\_output\_path | Where to save the Kubectl config file (if `write_kubeconfig = true`). Assumed to be a directory if the value ends with a forward slash `/`. | `string` | `"./"` | no |
|
||||||
| create\_eks | Controls if EKS resources should be created (it affects almost all resources) | `bool` | `true` | no |
|
| create\_eks | Controls if EKS resources should be created (it affects almost all resources) | `bool` | `true` | no |
|
||||||
| eks\_oidc\_root\_ca\_thumbprint | Thumbprint of Root CA for EKS OIDC, Valid until 2037 | `string` | `"9e99a48a9960b14926bb7f3b02e22da2b0ab7280"` | no |
|
| eks\_oidc\_root\_ca\_thumbprint | Thumbprint of Root CA for EKS OIDC, Valid until 2037 | `string` | `"9e99a48a9960b14926bb7f3b02e22da2b0ab7280"` | no |
|
||||||
|
|||||||
@@ -123,9 +123,10 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.private_subnets
|
cluster_version = "1.17"
|
||||||
|
subnets = module.vpc.private_subnets
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
Environment = "test"
|
Environment = "test"
|
||||||
|
|||||||
@@ -21,8 +21,9 @@ provider "kubernetes" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
create_eks = false
|
create_eks = false
|
||||||
|
cluster_version = ""
|
||||||
|
|
||||||
vpc_id = ""
|
vpc_id = ""
|
||||||
cluster_name = ""
|
cluster_name = ""
|
||||||
|
|||||||
@@ -55,11 +55,12 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.public_subnets
|
cluster_version = "1.17"
|
||||||
vpc_id = module.vpc.vpc_id
|
subnets = module.vpc.public_subnets
|
||||||
enable_irsa = true
|
vpc_id = module.vpc.vpc_id
|
||||||
|
enable_irsa = true
|
||||||
|
|
||||||
worker_groups = [
|
worker_groups = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -63,10 +63,11 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.public_subnets
|
cluster_version = "1.17"
|
||||||
vpc_id = module.vpc.vpc_id
|
subnets = module.vpc.public_subnets
|
||||||
|
vpc_id = module.vpc.vpc_id
|
||||||
|
|
||||||
worker_groups_launch_template = [
|
worker_groups_launch_template = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -76,9 +76,10 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.private_subnets
|
cluster_version = "1.17"
|
||||||
|
subnets = module.vpc.private_subnets
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
Environment = "test"
|
Environment = "test"
|
||||||
|
|||||||
@@ -80,9 +80,10 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.private_subnets
|
cluster_version = "1.17"
|
||||||
|
subnets = module.vpc.private_subnets
|
||||||
|
|
||||||
cluster_encryption_config = [
|
cluster_encryption_config = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -63,10 +63,11 @@ module "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = local.cluster_name
|
cluster_name = local.cluster_name
|
||||||
subnets = module.vpc.public_subnets
|
cluster_version = "1.17"
|
||||||
vpc_id = module.vpc.vpc_id
|
subnets = module.vpc.public_subnets
|
||||||
|
vpc_id = module.vpc.vpc_id
|
||||||
|
|
||||||
worker_groups_launch_template = [
|
worker_groups_launch_template = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ variable "cluster_security_group_id" {
|
|||||||
variable "cluster_version" {
|
variable "cluster_version" {
|
||||||
description = "Kubernetes version to use for the EKS cluster."
|
description = "Kubernetes version to use for the EKS cluster."
|
||||||
type = string
|
type = string
|
||||||
default = "1.16"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "config_output_path" {
|
variable "config_output_path" {
|
||||||
|
|||||||
Reference in New Issue
Block a user