Skip to content

Commit 8e95860

Browse files
committed
backport "fix: Add missing metadata block for launch configuration"
terraform-aws-modules#1301
1 parent 1be1a02 commit 8e95860

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

workers.tf

+18
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,24 @@ resource "aws_launch_configuration" "workers" {
208208
local.workers_group_defaults["placement_tenancy"],
209209
)
210210

211+
metadata_options {
212+
http_endpoint = lookup(
213+
var.worker_groups[count.index],
214+
"metadata_http_endpoint",
215+
local.workers_group_defaults["metadata_http_endpoint"],
216+
)
217+
http_tokens = lookup(
218+
var.worker_groups[count.index],
219+
"metadata_http_tokens",
220+
local.workers_group_defaults["metadata_http_tokens"],
221+
)
222+
http_put_response_hop_limit = lookup(
223+
var.worker_groups[count.index],
224+
"metadata_http_put_response_hop_limit",
225+
local.workers_group_defaults["metadata_http_put_response_hop_limit"],
226+
)
227+
}
228+
211229
root_block_device {
212230
volume_size = lookup(
213231
var.worker_groups[count.index],

0 commit comments

Comments
 (0)