I am launching a aws_launch_configuration
instance using terraform.
I\'m using a shell script for the user_data
variable, like so:
For people coming here since Terraform 0.12 and later, the templatefile function should be used instead of using template_file resource, so for the example in the question, it would be something like
locals {
vars = {
some_address = aws_instance.some.private_ip
}
}
user-data = templatefile("router-init.sh", vars)