fix(terraform): AWS changes compliance
[csit.git] / fdio.infra.terraform / terraform-aws-elastic-beanstalk-environment / main.tf
index fd570ab..2e6fb44 100644 (file)
@@ -422,6 +422,12 @@ resource "aws_elastic_beanstalk_environment" "environment" {
     value     = aws_iam_instance_profile.ec2_iam_instance_profile.name
   }
 
+  setting {
+    namespace = "aws:autoscaling:launchconfiguration"
+    name      = "DisableIMDSv1"
+    value     = true
+  }
+
   # aws:autoscaling:updatepolicy:rollingupdate
   setting {
     namespace = "aws:autoscaling:updatepolicy:rollingupdate"