Quick Start

  1. Create a new working folder for a Terraform project and change directory into the new folder.

    $ mkdir terraform
    
    
    $ cd terraform
    
    
  2. 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
    
  3. Initialize your TF environment, which includes a basic syntax check.

    $ terraform init
    /bin/bash: terraform: command not found
    
  4. Syntax, dependency, logic check.

    $ terraform plan
    /bin/bash: terraform: command not found
    
  5. Deploy the configuration

    $ terraform apply --auto-approve
    /bin/bash: terraform: command not found
    
  6. Delete deployed objects, reverses the order of operations.

    $ terraform destroy --auto-approve
    /bin/bash: terraform: command not found