Skip to content

Commit

Permalink
Enable IMDSv2
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Aug 8, 2023
1 parent b7b78c0 commit 9c7e0d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ resource "aws_launch_template" "x86" {
arn = aws_iam_instance_profile.instance[0].arn
}

metadata_options {
http_tokens = "required"
http_put_response_hop_limit = 1
}

network_interfaces {
device_index = 0
associate_public_ip_address = true
Expand Down Expand Up @@ -194,6 +199,11 @@ resource "aws_launch_template" "arm" {
arn = aws_iam_instance_profile.instance[0].arn
}

metadata_options {
http_tokens = "required"
http_put_response_hop_limit = 1
}

network_interfaces {
device_index = 0
associate_public_ip_address = true
Expand Down

0 comments on commit 9c7e0d6

Please sign in to comment.