Merge branch '21535-multi-wf-delete'
[arvados.git] / tools / salt-install / terraform / aws / services / main.tf
index bdb2bdcc366aa53db51b67408c6ce48c5200f5d4..06564edad6cb3efd6c82f67b2874b300def493d3 100644 (file)
@@ -67,7 +67,11 @@ resource "aws_instance" "arvados_service" {
     volume_type = "gp3"
     volume_size = try(var.instance_volume_size[each.value], var.instance_volume_size.default)
   }
-
+  metadata_options {
+    # Sets IMDSv2 to required. Default is "optional".
+    http_tokens = "required"
+    http_endpoint = "enabled"
+  }
   lifecycle {
     ignore_changes = [
       # Avoids recreating the instance when the latest AMI changes.