AWS Launch Configuration that have IMDSv1 enabled makes the end instances vulnerable to server side request forgery (SSRF) attacks.
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/configuring-instance-metadata-service.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration