Quick Start
Create a new working folder for a Terraform project and change directory into the new folder.
$ mkdir terraform
$ cd terraform
Create a file named hello-world.tf
$ cat <<EOF > hello-world.tf terraform { required_version = ">= 0.12.26" } output "hello_world" { value = "Hello, World!" } EOF
Initialize your TF environment, which includes a basic syntax check.
$ terraform init /bin/bash: terraform: command not found
Syntax, dependency, logic check.
$ terraform plan /bin/bash: terraform: command not found
Deploy the configuration
$ terraform apply --auto-approve /bin/bash: terraform: command not found
Delete deployed objects, reverses the order of operations.
$ terraform destroy --auto-approve /bin/bash: terraform: command not found