Skip to content

Commit

Permalink
add variable for http_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Mostowiec authored and Dominik Mostowiec committed Jun 28, 2021
1 parent eadb42f commit d46c25b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions launch-template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ resource "aws_launch_template" "default" {
http_put_response_hop_limit = var.launch_template_http_put_response_hop_limit
# Despite being documented as "Optional", `http_endpoint` is required when `http_put_response_hop_limit` is set.
# We set it to the default setting of "enabled".
http_tokens = var.launch_template_http_tokens
http_endpoint = "enabled"
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,9 @@ variable "launch_template_http_put_response_hop_limit" {
default = 2
description = "The desired HTTP PUT response hop limit for instance metadata requests"
}

variable "launch_template_http_tokens" {
type = string
default = "optional"
description = "Whether or not the metadata service requires session tokens"
}

0 comments on commit d46c25b

Please sign in to comment.