Skip to content

Commit c96e749

Browse files
Merge pull request #15 from depot/imdsv2
2 parents b7b78c0 + 9c7e0d6 commit c96e749

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ resource "aws_launch_template" "x86" {
158158
arn = aws_iam_instance_profile.instance[0].arn
159159
}
160160

161+
metadata_options {
162+
http_tokens = "required"
163+
http_put_response_hop_limit = 1
164+
}
165+
161166
network_interfaces {
162167
device_index = 0
163168
associate_public_ip_address = true
@@ -194,6 +199,11 @@ resource "aws_launch_template" "arm" {
194199
arn = aws_iam_instance_profile.instance[0].arn
195200
}
196201

202+
metadata_options {
203+
http_tokens = "required"
204+
http_put_response_hop_limit = 1
205+
}
206+
197207
network_interfaces {
198208
device_index = 0
199209
associate_public_ip_address = true

0 commit comments

Comments
 (0)