UPD: added IMDSv2 requirement
This commit is contained in:
parent
c53a27ee5f
commit
b26b80218f
@ -22,6 +22,12 @@ resource "aws_instance" "ec2-instance" {
|
||||
volume_tags = merge(var.additional_tags, var.default-tags,
|
||||
{ Name = var.instance-name }
|
||||
)
|
||||
# IMDSv2 requirement
|
||||
metadata_options {
|
||||
http_endpoint = "enabled"
|
||||
http_tokens = "required"
|
||||
http_put_response_hop_limit = 2
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_ebs_volume" "data-volumes" {
|
||||
|
Loading…
Reference in New Issue
Block a user