mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-21 08:59:02 +01:00
merge upstream with release v1.3.0
This commit is contained in:
45
variables.tf
45
variables.tf
@@ -8,7 +8,7 @@ variable "cluster_security_group_id" {
|
||||
}
|
||||
|
||||
variable "workstation_cidr" {
|
||||
description = "Override the default ingress rule that allows communication with the EKS cluster API. If not given, will use current IP/32. "
|
||||
description = "Override the default ingress rule that allows communication with the EKS cluster API. If not given, will use current IP/32. "
|
||||
default = ""
|
||||
}
|
||||
|
||||
@@ -18,15 +18,38 @@ variable "cluster_version" {
|
||||
}
|
||||
|
||||
variable "config_output_path" {
|
||||
description = "Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory."
|
||||
description = "Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. Should end in a forward slash / ."
|
||||
default = "./"
|
||||
}
|
||||
|
||||
variable "configure_kubectl_session" {
|
||||
description = "Configure the current session's kubectl to use the instantiated EKS cluster."
|
||||
variable "write_kubeconfig" {
|
||||
description = "Whether to write a kubeconfig file containing the cluster configuration."
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "manage_aws_auth" {
|
||||
description = "Whether to write and apply the aws-auth configmap file."
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "map_accounts" {
|
||||
description = "Additional AWS account numbers to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format."
|
||||
type = "list"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "map_roles" {
|
||||
description = "Additional IAM roles to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format."
|
||||
type = "list"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "map_users" {
|
||||
description = "Additional IAM users to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format."
|
||||
type = "list"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "subnets" {
|
||||
description = "A list of subnets to place the EKS cluster and workers within."
|
||||
type = "list"
|
||||
@@ -34,6 +57,7 @@ variable "subnets" {
|
||||
|
||||
variable "tags" {
|
||||
description = "A map of tags to add to all resources."
|
||||
type = "map"
|
||||
default = {}
|
||||
}
|
||||
|
||||
@@ -82,6 +106,7 @@ variable "workers_group_defaults" {
|
||||
ebs_optimized = true # sets whether to use ebs optimization on supported types.
|
||||
public_ip = false # Associate a public ip address with a worker
|
||||
kubelet_node_labels = "" # This string is passed directly to kubelet via --node-lables= if set. It should be comma delimited with no spaces. If left empty no --node-labels switch is added.
|
||||
subnets = "" # A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,21 +121,23 @@ variable "worker_sg_ingress_from_port" {
|
||||
}
|
||||
|
||||
variable "kubeconfig_aws_authenticator_command" {
|
||||
description = "Command to use to to fetch AWS EKS credentials"
|
||||
default = "heptio-authenticator-aws"
|
||||
description = "Command to use to to fetch AWS EKS credentials."
|
||||
default = "aws-iam-authenticator"
|
||||
}
|
||||
|
||||
variable "kubeconfig_aws_authenticator_additional_args" {
|
||||
description = "Any additional arguments to pass to the authenticator such as the role to assume [\"-r\", \"MyEksRole\"]"
|
||||
description = "Any additional arguments to pass to the authenticator such as the role to assume. e.g. [\"-r\", \"MyEksRole\"]."
|
||||
type = "list"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "kubeconfig_aws_authenticator_env_variables" {
|
||||
description = "Environment variables that should be used when executing the authenticator i.e. { AWS_PROFILE = \"eks\"}"
|
||||
description = "Environment variables that should be used when executing the authenticator. e.g. { AWS_PROFILE = \"eks\"}."
|
||||
type = "map"
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "kubeconfig_name" {
|
||||
description = "Override the default name used for items kubeconfig"
|
||||
description = "Override the default name used for items kubeconfig."
|
||||
default = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user