You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,6 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
148
148
| worker\_create\_security\_group | Whether to create a security group for the workers or attach the workers to `worker_security_group_id`. | string | `"true"` | no |
149
149
| worker\_group\_count | The number of maps contained within the worker_groups list. | string | `"1"` | no |
150
150
| worker\_group\_launch\_template\_count | The number of maps contained within the worker_groups_launch_template list. | string | `"0"` | no |
151
-
| worker\_group\_launch\_template\_tags | A map defining extra tags to be applied to the worker group template ASG. | map | `{ "default": [] }` | no |
152
151
| worker\_group\_tags | A map defining extra tags to be applied to the worker group ASG. | map | `{ "default": [] }` | no |
153
152
| worker\_groups | A list of maps defining worker group configurations to be defined using AWS Launch Configurations. See workers_group_defaults for valid keys. | list | `[ { "name": "default" } ]` | no |
154
153
| worker\_groups\_launch\_template | A list of maps defining worker group configurations to be defined using AWS Launch Templates. See workers_group_defaults for valid keys. | list | `[ { "name": "default" } ]` | no |
@@ -157,14 +156,14 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
157
156
| workers\_additional\_policies | Additional policies to be added to workers | list | `[]` | no |
158
157
| workers\_additional\_policies\_count | | string | `"0"` | no |
159
158
| workers\_group\_defaults | Override default values for target groups. See workers_group_defaults_defaults in local.tf for valid keys. | map | `{}` | no |
160
-
| workers\_group\_launch\_template\_defaults | Override default values for target groups. See workers_group_defaults_defaults in local.tf for valid keys. | map | `{}` | no |
161
159
| write\_aws\_auth\_config | Whether to write the aws-auth configmap file. | string | `"true"` | no |
162
160
| write\_kubeconfig | Whether to write a Kubectl config file containing the cluster configuration. Saved to `config_output_path`. | string | `"true"` | no |
163
161
164
162
## Outputs
165
163
166
164
| Name | Description |
167
165
|------|-------------|
166
+
| cluster\_arn | The Amazon Resource Name (ARN) of the cluster. |
168
167
| cluster\_certificate\_authority\_data | Nested attribute containing certificate-authority-data for your cluster. This is the base64 encoded certificate data required to communicate with your cluster. |
169
168
| cluster\_endpoint | The endpoint for your EKS Kubernetes API. |
170
169
| cluster\_iam\_role\_arn | IAM role ARN of the EKS cluster. |
@@ -183,9 +182,9 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
183
182
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
184
183
| workers\_asg\_names | Names of the autoscaling groups containing workers. |
185
184
| workers\_default\_ami\_id | ID of the default worker group AMI |
186
-
| workers\_user\_data | User data of worker groups |
187
185
| workers\_launch\_template\_arns | ARNs of the worker launch templates. |
188
186
| workers\_launch\_template\_ids | IDs of the worker launch templates. |
189
187
| workers\_launch\_template\_latest\_versions | Latest versions of the worker launch templates. |
188
+
| workers\_user\_data | User data of worker groups |
service_linked_role_arn =""# Arn of custom service linked role that Auto Scaling group will use. Useful when you have encrypted EBS
49
47
50
-
workers_group_launch_template_defaults_defaults={
51
-
name ="count.index"# Name of the worker group. Literal count.index will never be used but if name is not set, the count.index interpolation will be used.
52
-
ami_id ="${data.aws_ami.eks_worker.id}"# AMI ID for the eks workers. If none is provided, Terraform will search for the latest version of their EKS optimized worker AMI.
53
-
root_block_device_id ="${data.aws_ami.eks_worker.root_device_name}"# Root device name for workers. If non is provided, will assume default AMI was used.
54
-
asg_desired_capacity ="1"# Desired worker capacity in the autoscaling group.
55
-
asg_max_size ="3"# Maximum worker capacity in the autoscaling group.
56
-
asg_min_size ="1"# Minimum worker capacity in the autoscaling group.
57
-
asg_force_delete =false# Enable forced deletion for the autoscaling group.
58
-
instance_type ="m4.large"# Size of the workers instances.
59
-
override_instance_type ="t3.large"# Need to specify at least one additional instance type for mixed instances policy. The instance_type holds higher priority for on demand instances.
60
-
on_demand_allocation_strategy ="prioritized"# Strategy to use when launching on-demand instances. Valid values: prioritized.
61
-
on_demand_base_capacity ="0"# Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances
62
-
on_demand_percentage_above_base_capacity ="100"# Percentage split between on-demand and Spot instances above the base on-demand capacity
63
-
spot_allocation_strategy ="lowest-price"# The only valid value is lowest-price, which is also the default value. The Auto Scaling group selects the cheapest Spot pools and evenly allocates your Spot capacity across the number of Spot pools that you specify.
64
-
spot_instance_pools =10# "Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify."
65
-
spot_max_price =""# Maximum price per unit hour that the user is willing to pay for the Spot instances. Default is the on-demand price
66
-
spot_price =""# Cost of spot instance.
67
-
placement_tenancy ="default"# The tenancy of the instance. Valid values are "default" or "dedicated".
68
-
root_volume_size ="100"# root volume size of workers instances.
69
-
root_volume_type ="gp2"# root volume type of workers instances, can be 'standard', 'gp2', or 'io1'
70
-
root_iops ="0"# The amount of provisioned IOPS. This must be set with a volume_type of "io1".
71
-
root_encrypted =""# root volume encryption for workers.
72
-
kms_key_id =""# KMS key ID used for encrypted block device. ASG must have access to this key. If not specified, the default KMS key will be used.
73
-
key_name =""# The key name that should be used for the instances in the autoscaling group
74
-
pre_userdata =""# userdata to pre-append to the default userdata.
75
-
bootstrap_extra_args =""# Extra arguments passed to the bootstrap.sh script from the EKS AMI.
76
-
additional_userdata =""# userdata to append to the default userdata.
77
-
ebs_optimized =true# sets whether to use ebs optimization on supported types.
public_ip =false# Associate a public ip address with a worker
80
-
eni_delete =true# Delete the ENI on termination (if set to false you will have to manually delete before destroying)
81
-
kubelet_extra_args =""# This string is passed directly to kubelet if set. Useful for adding labels or taints.
82
-
subnets ="${join(",", var.subnets)}"# A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789
83
-
autoscaling_enabled =false# Sets whether policy and matching tags will be added to allow autoscaling.
84
-
additional_security_group_ids =""# A comma delimited list of additional security group ids to include in worker launch config
85
-
protect_from_scale_in =false# Prevent AWS from scaling in, so that cluster-autoscaler is solely responsible.
86
-
iam_instance_profile_name =""# A custom IAM instance profile name. Used when manage_worker_iam_resources is set to false. Incompatible with iam_role_id.
87
-
iam_role_id ="${local.default_iam_role_id}"# A custom IAM role id. Incompatible with iam_instance_profile_name.
88
-
suspended_processes ="AZRebalance"# A comma delimited string of processes to to suspend. i.e. AZRebalance,HealthCheck,ReplaceUnhealthy
89
-
target_group_arns =""# A comma delimited list of ALB target group ARNs to be associated to the ASG
90
-
enabled_metrics =""# A comma delimited list of metrics to be collected i.e. GroupMinSize,GroupMaxSize,GroupDesiredCapacity
91
-
placement_group =""# The name of the placement group into which to launch the instances, if any.
92
-
service_linked_role_arn =""# Arn of custom service linked role that Auto Scaling group will use. Useful when you have encrypted EBS
48
+
# Settings for launch templates
49
+
root_block_device_name ="${data.aws_ami.eks_worker.root_device_name}"# Root device name for workers. If non is provided, will assume default AMI was used.
50
+
root_kms_key_id =""# The KMS key to use when encrypting the root storage device
51
+
launch_template_version ="$Latest"# The lastest version of the launch template to use in the autoscaling group
52
+
launch_template_placement_tenancy ="default"# The placement tenancy for instances
53
+
launch_template_placement_group =""# The name of the placement group into which to launch the instances, if any.
54
+
root_encrypted =""# Whether the volume should be encrypted or not
55
+
eni_delete =true# Delete the ENI on termination (if set to false you will have to manually delete before destroying)
description="Override default values for target groups. See workers_group_defaults_defaults in local.tf for valid keys."
143
-
type="map"
144
-
default={}
145
-
}
146
-
147
-
variable"worker_group_launch_template_tags" {
148
-
description="A map defining extra tags to be applied to the worker group template ASG."
149
-
type="map"
150
-
151
-
default={
152
-
default = []
153
-
}
154
-
}
155
-
156
141
variable"worker_security_group_id" {
157
142
description="If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster."
0 commit comments