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

Commit

Permalink
Security/Compliance fix - require IMDSv2 on NAT instance (#48) (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenzie-oa authored Nov 24, 2022
1 parent 8120df9 commit 1c8ffeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ resource "aws_launch_template" "this" {
arn = aws_iam_instance_profile.this.arn
}

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

network_interfaces {
associate_public_ip_address = true
security_groups = [aws_security_group.this.id]
Expand Down

0 comments on commit 1c8ffeb

Please sign in to comment.