Hey Everyone! I want to deploy ec2 with terraform and to use terraform variable . . .

Anton Kondaurov:
Hey Everyone!

I want to deploy ec2 with terraform and to use terraform variables in user_data.
How can i past my variables inside the user_data script?

Alex Novik:
you can pass variables stored in vars file multiple ways one of them is:
terraform apply -var-file=“user_data”

Alex Novik:
https://developer.hashicorp.com/terraform/language/values/variables