initialize terraform

  • terraform init

validate terraform

  • terraform validate

deploy machine to aws

  • terraform apply

Remember that to tell Terraform our file with the variable values ​​we run the command:

-terraform plan -var-file your_file.tfvars