Menu

Dipesh Majumdar

Blog and Paintings

Installing Terraform in macOS

 

First download the software (a zip file) from here - https://www.terraform.io/downloads.html  (for the relevant OS - in this case MAC-OS_

 

dipeshmajumdar$ unzip terraform_0.12.10_darwin_amd64.zip 

Archive:  terraform_0.12.10_darwin_amd64.zip

  inflating: terraform               

MacBook-Pro-van-Dipesh:Software dipeshmajumdar$ ls -ltra

total 143376

-rwxr-xr-x@  1 dipeshmajumdar  staff  55634200 Oct  7 18:15 terraform

-rw-r--r--@  1 dipeshmajumdar  staff  17095466 Oct 17 10:59 terraform_0.12.10_darwin_amd64.zip

drwxr-xr-x+ 57 dipeshmajumdar  staff      1824 Oct 17 11:01 ..

drwxr-xr-x   4 dipeshmajumdar  staff       128 Oct 17 11:02 .

 

Now this file - terraform is there in `/Software so adding same path to .bash_profile

 

Now all set... terraform command should work now as shown below - 

 

 

dipeshmajumdar$ terraform

Usage: terraform [-version] [-help] <command> [args]

 

The available commands for execution are listed below.

The most common, useful commands are shown first, followed by

less common or more advanced commands. If you're just getting

started with Terraform, stick with the common commands. For the

other commands, please read the help and docs before usage.

 

Common commands:

    apply              Builds or changes infrastructure

    console            Interactive console for Terraform interpolations

    destroy            Destroy Terraform-managed infrastructure

    env                Workspace management

    fmt                Rewrites config files to canonical format

    get                Download and install modules for the configuration

    graph              Create a visual graph of Terraform resources

    import             Import existing infrastructure into Terraform

    init               Initialize a Terraform working directory

    output             Read an output from a state file

    plan               Generate and show an execution plan

    providers          Prints a tree of the providers used in the configuration

    refresh            Update local state file against real resources

    show               Inspect Terraform state or plan

    taint              Manually mark a resource for recreation

    untaint            Manually unmark a resource as tainted

    validate           Validates the Terraform files

    version            Prints the Terraform version

    workspace          Workspace management

 

All other commands:

    0.12upgrade        Rewrites pre-0.12 module source code for v0.12

    debug              Debug output management (experimental)

    force-unlock       Manually unlock the terraform state

    push               Obsolete command for Terraform Enterprise legacy (v1)

    state              Advanced state management

 

Go Back

Comment