Downloads of v 0.12.0-alpha4:


Last Update:

28 Dec 2018

Package Maintainer(s):

Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp


terraform hashicorp


This is a prerelease version of Terraform.

  • 1
  • 2
  • 3

0.12.0-alpha4 | Updated: 28 Dec 2018



Downloads of v 0.12.0-alpha4:



Software Author(s):

  • Mitchell Hashimoto
  • HashiCorp

  • 1
  • 2
  • 3
Terraform 0.12.0-alpha4

This is a prerelease version of Terraform.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Exemption for this package version only:


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-alpha4'" --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-alpha4'" --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-alpha4'
    state: present
    allow_prerelease: yes

See docs at

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

See docs at

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

Requires cChoco DSC Resource. See docs at

package { 'terraform':
  ensure          => '0.12.0-alpha4',
  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 28 Dec 2018.


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 = '1b89b13df0c0a537882ef1456bec02d016ccee56320b769cc825a241aa3a918b'
$checksum64 = '947277121a1a87b71bc0c6258b5ce83804461e2dadfc5529b58de0d22cf4b60d'
$version = '0.12.0-alpha4'
$url = "$($version)/terraform_$($version)_terraform_$($version)"
$url64bit = "$($version)/terraform_$($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 3087 Tuesday, November 9, 2021 Approved
Terraform 1.0.9 11871 Tuesday, October 19, 2021 Approved
Terraform 1.0.8 10384 Wednesday, September 29, 2021 Approved
Terraform 1.0.7 7122 Thursday, September 16, 2021 Approved
Terraform 1.0.6 5177 Wednesday, September 8, 2021 Approved
Terraform 1.0.5 484 Monday, August 23, 2021 Approved
Terraform 1.0.4 13098 Sunday, August 8, 2021 Approved
Terraform 1.0.3 5365 Thursday, July 29, 2021 Approved
Terraform 1.0.2 8535 Saturday, July 10, 2021 Approved

0.12.0-alpha4 (December 7, 2018)

No changes to terraform; this release is only necessary to fix an incorrect version of the aws provider bundled in alpha3

0.12.0-alpha3 (December 6, 2018)


  • command: Remove -module-depth flag from plan, apply, and show. This flag was not widely used and the various updates and improvements to cli output should remove the need for this flag. (#19267)
  • plugins: The protobuf/grpc package name for the provider protocol was changed from proto to tfplugin5 in preparation for future protocol versioning. This means that plugin binaries built for alpha1 and alpha2 are no longer compatible and will need to be rebuilt. (#19393)


  • dependencies: upgrading to v21.3.0 of (#19414)
  • dependencies: upgrading to v10.15.4 of (#19414)
  • backend/azurerm: Fixing a bug where locks couldn't be unlocked (#19441)
  • backend/azurerm: Support for authenticating via Managed Service Identity (#19433)
  • backend/azurerm: Support for authenticating using a SAS Token (#19440)
  • backend/azurerm: Support for custom Resource Manager Endpoints (#19460)
  • backend/azurerm: Using the proxy from the environment when set (#19414)
  • backend/azurerm: Deprecating the arm_ prefix for keys used in the backend configuration (#19448)
  • command/state: Update and enable the state show command (#19200)
  • command/state: Lock the state when pushing a new state using state push (#19411)
  • backend/remote: Implement the remote enhanced backend (#19299)
  • backend/remote: Support remote state only usage by dynamically falling back to the local backend (#19378)
  • backend/remote: Also show Sentinel policy output when there are no changes (#19403)
  • backend/remote: Add support for the console, graph and import commands (#19464)
  • backend/remote: Use the new force-unlock API (#19520)
  • plugin/discovery: Use signing keys from the Terraform Registry when downloading providers. (#19389)
  • plugin/discovery: Use default - namespace alias when fetching available providers from Terraform Registry. (#19494)


  • command/format: Fix rendering of attribute-agnostic diagnostics (#19453)
  • core: Fix inconsistent plans when replacing instances. (#19233)
  • core: Correct handling of unknown values in module outputs during planning and final resolution of them during apply. (#19237)
  • core: Correct handling of wildcard dependencies when upgrading states (#19374)
  • core: Fix missing validation of references to non-existing child modules, which was previously resulting in a panic. (#19487)
  • helper/schema: Don't re-apply schema StateFuncs during apply (#19536)
  • helper/schema: Allow providers to continue setting and empty string to a default bool value (#19521)
  • helper/schema: Prevent the insertion of empty diff values when converting legacy diffs (#19253)
  • helper/schema: Fix timeout parsing during Provider.Diff (plan) (#19286)
  • helper/schema: Provider arguments set from environment variables now work correctly again, after regressing in the prior 0.12 alphas. (#19478)
  • helper/schema: For schema attributes that have Elem as a nested schema.Resource, setting Optional: true now forces MinItems to be zero, thus mimicking a previously-undocumented behavior that some providers were relying on. (#19478)
  • helper/schema: Always propagate NewComputed for previously zero value primitive type attributes (#19548)
  • backend/remote: Fix issues with uploaded configs that contain symlinks (#19520)

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