Skip to content

Commit

Permalink
fix: Add mission metadata block for launch configuration (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamialie authored Apr 19, 2021
1 parent 2549408 commit fc6852d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,24 @@ resource "aws_launch_configuration" "workers" {
local.workers_group_defaults["placement_tenancy"],
)

metadata_options {
http_endpoint = lookup(
var.worker_groups[count.index],
"metadata_http_endpoint",
local.workers_group_defaults["metadata_http_endpoint"],
)
http_tokens = lookup(
var.worker_groups[count.index],
"metadata_http_tokens",
local.workers_group_defaults["metadata_http_tokens"],
)
http_put_response_hop_limit = lookup(
var.worker_groups[count.index],
"metadata_http_put_response_hop_limit",
local.workers_group_defaults["metadata_http_put_response_hop_limit"],
)
}

root_block_device {
encrypted = lookup(
var.worker_groups[count.index],
Expand Down

0 comments on commit fc6852d

Please sign in to comment.