Skip to content

Commit

Permalink
add metadata_options
Browse files Browse the repository at this point in the history
  • Loading branch information
Tingweiftw committed Nov 24, 2023
1 parent 27107be commit 9703c74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/nomad-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ resource "aws_launch_configuration" "launch_configuration" {
spot_price = var.spot_price
user_data = var.user_data

metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
http_put_response_hop_limit = 3
}

iam_instance_profile = aws_iam_instance_profile.instance_profile.name
key_name = var.ssh_key_name

Expand Down

0 comments on commit 9703c74

Please sign in to comment.