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
feat: IMDSv2 metadata configuration in Launch Templates (#938)
NOTES: Addition of the IMDSv2 metadata configuration block to Launch Templates will cause a diff to be generated for existing Launch Templates on first Terraform apply. The defaults match existing behaviour.
Copy file name to clipboardExpand all lines: local.tf
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -76,15 +76,18 @@ locals {
76
76
platform ="linux"# Platform of workers. either "linux" or "windows"
77
77
additional_ebs_volumes = [] # A list of additional volumes to be attached to the instances on this Auto Scaling group. Each volume should be an object with the following: block_device_name (required), volume_size, volume_type, iops, encrypted, kms_key_id (only on launch-template), delete_on_termination. Optional values are grabbed from root volume or from defaults
78
78
# Settings for launch templates
79
-
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.
80
-
root_kms_key_id =""# The KMS key to use when encrypting the root storage device
81
-
launch_template_version ="$Latest"# The lastest version of the launch template to use in the autoscaling group
82
-
launch_template_placement_tenancy ="default"# The placement tenancy for instances
83
-
launch_template_placement_group =null# The name of the placement group into which to launch the instances, if any.
84
-
root_encrypted =false# Whether the volume should be encrypted or not
85
-
eni_delete =true# Delete the Elastic Network Interface (ENI) on termination (if set to false you will have to manually delete before destroying)
86
-
cpu_credits ="standard"# T2/T3 unlimited mode, can be 'standard' or 'unlimited'. Used 'standard' mode as default to avoid paying higher costs
87
-
market_type =null
79
+
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.
80
+
root_kms_key_id =""# The KMS key to use when encrypting the root storage device
81
+
launch_template_version ="$Latest"# The lastest version of the launch template to use in the autoscaling group
82
+
launch_template_placement_tenancy ="default"# The placement tenancy for instances
83
+
launch_template_placement_group =null# The name of the placement group into which to launch the instances, if any.
84
+
root_encrypted =false# Whether the volume should be encrypted or not
85
+
eni_delete =true# Delete the Elastic Network Interface (ENI) on termination (if set to false you will have to manually delete before destroying)
86
+
cpu_credits ="standard"# T2/T3 unlimited mode, can be 'standard' or 'unlimited'. Used 'standard' mode as default to avoid paying higher costs
87
+
market_type =null
88
+
metadata_http_endpoint ="enabled"# The state of the metadata service: enabled, disabled.
89
+
metadata_http_tokens ="optional"# If session tokens are required: optional, required.
90
+
metadata_http_put_response_hop_limit =null# The desired HTTP PUT response hop limit for instance metadata requests.
88
91
# Settings for launch templates with mixed instances policy
89
92
override_instance_types = ["m5.large", "m5a.large", "m5d.large", "m5ad.large"] # A list of override instance types for mixed instances policy
90
93
on_demand_allocation_strategy =null# Strategy to use when launching on-demand instances. Valid values: prioritized.
0 commit comments