Skip to content

Commit 346abf4

Browse files
kamialiebarryib
authored andcommitted
fix: Add mission metadata block for launch configuration (terraform-aws-modules#1301)
1 parent 5273ead commit 346abf4

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
@@ -234,6 +234,24 @@ resource "aws_launch_configuration" "workers" {
234234
local.workers_group_defaults["placement_tenancy"],
235235
)
236236

237+
metadata_options {
238+
http_endpoint = lookup(
239+
var.worker_groups[count.index],
240+
"metadata_http_endpoint",
241+
local.workers_group_defaults["metadata_http_endpoint"],
242+
)
243+
http_tokens = lookup(
244+
var.worker_groups[count.index],
245+
"metadata_http_tokens",
246+
local.workers_group_defaults["metadata_http_tokens"],
247+
)
248+
http_put_response_hop_limit = lookup(
249+
var.worker_groups[count.index],
250+
"metadata_http_put_response_hop_limit",
251+
local.workers_group_defaults["metadata_http_put_response_hop_limit"],
252+
)
253+
}
254+
237255
root_block_device {
238256
encrypted = lookup(
239257
var.worker_groups[count.index],

0 commit comments

Comments
 (0)