Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit 1c8ffeb

Browse files
authored
Security/Compliance fix - require IMDSv2 on NAT instance (#48) (#55)
1 parent 8120df9 commit 1c8ffeb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ resource "aws_launch_template" "this" {
7373
arn = aws_iam_instance_profile.this.arn
7474
}
7575

76+
metadata_options {
77+
http_endpoint = "enabled"
78+
http_tokens = "required"
79+
}
80+
7681
network_interfaces {
7782
associate_public_ip_address = true
7883
security_groups = [aws_security_group.this.id]

0 commit comments

Comments
 (0)