21383: Adds http_endpoint="enabled" to Terraform's ec2 instances code.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 26 Apr 2024 19:45:42 +0000 (16:45 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 6 May 2024 13:21:53 +0000 (10:21 -0300)
Although the documentation states that it's enabled by default, I was getting
an error like this:

Error: creating EC2 Instance: InvalidParameterValue: A value of '' is not valid for HttpEndpoint. Specify either 'enabled' or 'disabled' and try again.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/salt-install/terraform/aws/services/main.tf

index 54e2fc412bc8b87883ab8fe83bfaab5b9230104a..06564edad6cb3efd6c82f67b2874b300def493d3 100644 (file)
@@ -70,6 +70,7 @@ resource "aws_instance" "arvados_service" {
   metadata_options {
     # Sets IMDSv2 to required. Default is "optional".
     http_tokens = "required"
+    http_endpoint = "enabled"
   }
   lifecycle {
     ignore_changes = [