1.5.4 • Published 7 months ago

@smburrows/terraform-npm v1.5.4

Weekly downloads
23
License
AAL
Repository
github
Last release
7 months ago

terraform-npm

An NPM executable package for HashiCorp's Terraform.

code style: prettier terraform: v0.11.7 npm downloads Travis CI CodeClimate: Maintainability

Preamble

I assembled Terraform into an NPM package in order for me to include it in other projects that depended on the executable. I wanted to be able to publish NPM modules with scripts like this:

{
  "scripts": {
    "plan": "terraform plan -out=my-tfplan"
  }
}

But without having to worry about asking users to download Terraform externally.


Installation

To use Terraform as an NPM package, include it in your package.json dependencies:

# If you're using Yarn (recommended):
yarn add terraform-npm

# If you're using NPM:
npm i terraform-npm

Or, if you want a one-time installation that you can run arbitrarily, install it globally:

# If you're using Yarn (recommended):
yarn global add terraform-npm

# If you're using NPM:
npm i -g terraform-npm

Usage

As a project dependency:

This package cannot currently be used as a typical Node module, as it does not export any entry points; it only symlinks a binary. So, the recommended use case is to use it in your package.json scripts:

{
    "scripts": {
        "plan": "terraform plan -out=my-tfplan",
        "apply": "terraform apply",
        "execute": "terraform apply \"my-tfplan\"",
        "destroy": "terraform destroy"
    }
}

As a globally installed binary:

If you installed this package globally (with npm i -g or yarn global add), you can simply start using it like a regular command-line program:

terraform -v        # show version info
terraform --help    # show usage info
1.5.4

7 months ago

1.5.1

11 months ago

1.4.4

1 year ago

1.4.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.9

1 year ago

1.3.1

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.2

2 years ago

1.1.4

2 years ago

1.0.1

3 years ago

0.14.8

3 years ago

0.13.5

4 years ago

0.13.4

4 years ago

0.13.0

4 years ago

0.13.1

4 years ago

0.12.28

4 years ago

0.12.25

4 years ago

0.12.24

4 years ago

0.12.23

4 years ago

0.11.14

4 years ago

0.12.17

4 years ago

0.12.16

4 years ago

0.12.15

4 years ago

0.12.14

4 years ago

0.12.13

5 years ago