Define input variables | Terraform | HashiCorp Developer

Declare your AWS EC2 instance name as a variable. Reference the variable in Terraform configuration. Define variables using command line flags and default values.