Skip to content

Commit

Permalink
set hop limit to 3 for IMDSv2 PUT calls for Windows runners (#5897)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdvr authored Nov 12, 2024
1 parent d3cee67 commit ed500d1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ resource "aws_launch_template" "windows_runner" {
)
}

metadata_options {
http_endpoint = "enabled"
http_tokens = "optional"
http_put_response_hop_limit = 3
instance_metadata_tags = "enabled"
}


user_data = base64encode(templatefile(local.userdata_template_windows, {
environment = var.environment
pre_install = var.userdata_pre_install
Expand Down

0 comments on commit ed500d1

Please sign in to comment.