Downloads of v 0.12.0-beta1:


Last Update:

02 Apr 2019

Package Maintainer(s):

Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp


terraform hashicorp


This is a prerelease version of Terraform.

  • 1
  • 2
  • 3

0.12.0-beta1 | Updated: 02 Apr 2019



Downloads of v 0.12.0-beta1:



Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp

  • 1
  • 2
  • 3
Terraform 0.12.0-beta1

This is a prerelease version of Terraform.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.


Deployment Method: Individual Install, Upgrade, & Uninstall

To install Terraform, run the following command from the command line or from PowerShell:


To upgrade Terraform, run the following command from the command line or from PowerShell:


To uninstall Terraform, run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade terraform -y --source="'INTERNAL REPO URL'" --version="'0.12.0-beta1'" --prerelease [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade terraform -y --source="'INTERNAL REPO URL'" --version="'0.12.0-beta1'" --prerelease

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install terraform
    name: terraform
    version: '0.12.0-beta1'
    state: present
    allow_prerelease: yes

See docs at

chocolatey_package 'terraform' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.12.0-beta1'
  options  '--prerelease'

See docs at

cChocoPackageInstaller terraform
    Name        = "terraform"
    Version     = "0.12.0-beta1"
    Source      = "INTERNAL REPO URL"
    chocoParams = "--prerelease"

Requires cChoco DSC Resource. See docs at

package { 'terraform':
  ensure          => '0.12.0-beta1',
  install_options => ['--prerelease'],
  provider        => 'chocolatey',
  source          => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 03 Apr 2019.


Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

The key features of Terraform are:

  • Infrastructure as Code: Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used.
  • Execution Plans: Terraform has a "planning" step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure.
  • Resource Graph: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.
  • Change Automation: Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.

For more information, see the introduction section of the Terraform website.

$checksum = 'd997e1419a34affc437b0f89aba24b474084a79b4ba76b20d0a8282f18615191'
$checksum64 = '63e24b1a2179cde24cfeda227d6396330711cac7fe05a27900056d28cfd95158'
$version = '0.12.0-beta1'
$url = "$($version)/terraform_$($version)"
$url64bit = "$($version)/terraform_$($version)"
$unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

if ([System.IO.Directory]::Exists("$env:ChocolateyInstall\lib\terraform")) {
  if ([System.IO.Directory]::Exists("$env:ChocolateyInstall\lib\terraform\tools")) {
    # clean old plugins and ignore files
    Write-Host "Removing old terraform plugins"
    Remove-Item "$env:ChocolateyInstall\lib\terraform\tools\terraform-*.*"
} else {
  if ([System.IO.Directory]::Exists("$env:ALLUSERSPROFILE\chocolatey\lib\terraform")) {
    if ([System.IO.Directory]::Exists("$env:ALLUSERSPROFILE\chocolatey\lib\terraform\tools")) {
      # clean old plugins and ignore files
      Write-Host "Removing old terraform plugins"
      Remove-Item "$env:ALLUSERSPROFILE\chocolatey\lib\terraform\tools" -Include "terraform-*.*"

Install-ChocolateyZipPackage -PackageName "terraform" -Url "$url" -UnzipLocation "$unzipLocation" -Url64 "$url64bit" -ChecksumType 'sha256' -Checksum "$checksum" -Checksum64 "$checksum64"
UnInstall-ChocolateyZipPackage "terraform" ""

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Terraform 1.0.10 3092 Tuesday, November 9, 2021 Approved
Terraform 1.0.9 11942 Tuesday, October 19, 2021 Approved
Terraform 1.0.8 10412 Wednesday, September 29, 2021 Approved
Terraform 1.0.7 7150 Thursday, September 16, 2021 Approved
Terraform 1.0.6 5183 Wednesday, September 8, 2021 Approved
Terraform 1.0.5 487 Monday, August 23, 2021 Approved
Terraform 1.0.4 13103 Sunday, August 8, 2021 Approved
Terraform 1.0.3 5385 Thursday, July 29, 2021 Approved
Terraform 1.0.2 8542 Saturday, July 10, 2021 Approved

0.12.0-beta1 (Feb 28, 2019)

Please see the announcement post for details on how to use this release.


  • backend/s3: workspace_key_prefix can no longer be defined with leading or trailing slashes. Users should verify the state paths in s3 if they need to change this in case there are extra slashes in the keys (#20432)
  • config: path.module and path.root now return paths with forward slashes on all operating systems, including Windows. This avoids the need to write constructed paths differently for Windows vs. other operating systems, but any existing constructed paths containing backslashes for Windows must now be rewritten to use forward slashes, like "${path.module}/foo/bar". (#19708)
  • config: path.module and path.root are now relative to the current working directory, rather than absolute as before. This avoids including a host-specific absolute path prefix on constructed paths, but may show as a diff after upgrade in situations where a constructed path is included in a resource attribute value. (#19708)
  • tools/terraform-bundle: use the terraform-bundle of the same tag as the targeted terraform binary version. This avoids adding complexity to resolve protocol versions across different terraform versions. (#20030)


  • communicator/ssh: Add SSH certificate authentication (#18896)
  • communicator/ssh: Enable ssh keepalive messages for long running commands (#20437)
  • config: New set-theory functions sethaselement, setunion, setintersection, and setproduct for working with set values.
  • config: New type conversion functions tostring, tonumber, tobool, tolist, toset, and tomap. Explicit conversions are rarely required but occasionally useful; use these functions only when necessary.
  • plugins: Plugin RPC connection is now authenticated (#19629)
  • backend/azurerm: Support for authenticating using the Azure CLI (#19465)
  • backend/remote: Return detailed version (in)compatibility information (#19659)
  • backend/remote: Log early to indicate remote execution started (#19941)
  • backend/remote: Make sure the correct error is shown when having version incompatibilities (#20086)
  • backend/remote: Fix "token too long" errors when streaming remote operation logs (#20242)
  • backend/remote: Use the state.v2 service when using remote state only (#20379)
  • backend/remote: Use the can-queue-apply permission to detect if apply is allowed (#20460)
  • backend/s3: Fix missing workspace entries when using workspace_key_prefix with trailing slashes (#20432)
  • backend/s3: Support DynamoDB, IAM, and STS endpoint configurations (#19571)
  • backend/s3: Support for the new AWS region eu-north-1 (#19651)
  • backend/s3: Enhance retry logic and provide max_retries configuration to retry attempts (#19951)
  • backend/s3: Enhance S3 NoSuchBucket error to include additional information (#19951)
  • backend/s3: Remove unused EC2 platform and AWS Account ID lookup, and deprecate equivalent skip_get_ec2_platforms and skip_requesting_account_id arguments (#20374)
  • backend/swift: Add support for locking and workspaces (#20211)
  • core: Enhance service discovery error handling and messaging (#19589)
  • core: Add support to retrieve version constraints to service discovery (#19647)
  • core: Validate provisioner connection blocks, and mark host field as required (#19707)
  • command/format: Ignore removal of empty strings (#19990)
  • command/format: Reduce whitespaces in empty fields (#19995)
  • command/format: Render null in dark gray (#19616)
  • command/init: Add provider protocol compatibility UI err msg during registry discovery (#19976)
  • command/providers schema: Add command to export schemas for all currently-configured providers (#20446)
  • command/show: Add support for machine readable output via a -json argument to terraform show (#19687)
  • command/state: Use locking when updating states (#19939)
  • provisioner/salt: Default values for remote_state_tree and remote_pillar_roots (#17151)


  • config: Detect and reject self-referencing local values (#19706)
  • config: Accept and ignore UTF-8 byte-order mark for configuration files (#19715)
  • config: More helpful error message for a situation that may arise on upgrade from Terraform 0.11 or earlier (#19727)
  • config: Backends configured with -backend-config are correctly applied and stored along with default values (#20480)
  • connection/winrm: Set the correct default port when HTTPS is used (#19540)
  • plugins: GRPC plugins shutdown correctly when Close is called (#19629)
  • backend/local: Avoid rendering data sources on destroy (#19613)
  • backend/local: Fix incorrect destroy/update count on apply (#19610)
  • backend/local: Render CBD replacement (+/-) correctly (#19642)
  • backend/remote: Exit with 1 when a remote run is canceled (#20481)
  • command/format: Fix rendering of nested blocks during update (#19611)
  • command/format: Fix rendering of force-new updates (#19609)
  • command/format: Fix rendering of nested (JSON) object (#20071)
  • command/format: Fix rendering of unknown elements in set/map/list (#20067)
  • command/init: Fix plugin installer using wrong protocol causing incompatiable API version with plugin (#19221)
  • command/providers: Support -no-color argument to terraform providers, which was previously incorrectly returning an error (#19671)
  • helper/schema: Fix setting a set in a list (#19552)
  • states/statemgr: Avoid HTML escaping when printing LockInfo (#20005)
  • core: Correct errors when referencing a resource containing count without an index (#19674)
  • core: Fix occasional invalid provider errors when scaling down a counted datasource (#19676)
  • core: Fix crash when applying a stored plan containing destroys (#19726)


  • backend/pg: Support for using Postgresql for remote state storage (#19070)

Previous Releases

For more information on previous releases, check out the changelog on GitHub.

This package has no dependencies.

Discussion for the Terraform Package

Ground Rules:

  • This discussion is only about Terraform and the Terraform package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Terraform, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus