Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (31 loc) · 2.04 KB

install.md

File metadata and controls

43 lines (31 loc) · 2.04 KB

Terraform Validator is archived.

To enforce policy compliance with Constraint Framework policies as part of a CI/CD pipeline, migrate to gcloud beta terraform vet.

For a library that converts terraform plan data to CAI Asset data, use https://github.com/GoogleCloudPlatform/terraform-google-conversion.

Install Terraform Validator (Legacy)

Terraform Validator is compatible with Terraform 0.12+.

The released binaries are available under the gs://terraform-validator Google Cloud Storage bucket for Linux, Windows, and Mac. They are organized by release, for example:

$ gsutil ls -r "gs://terraform-validator/releases/v*"
...
gs://terraform-validator/releases/v0.13.0/:
gs://terraform-validator/releases/v0.13.0/terraform-validator_darwin_amd64-0.13.0.tar.gz
gs://terraform-validator/releases/v0.13.0/terraform-validator_darwin_arm64-0.13.0.tar.gz
gs://terraform-validator/releases/v0.13.0/terraform-validator_linux_amd64-0.13.0.tar.gz
gs://terraform-validator/releases/v0.13.0/terraform-validator_linux_arm64-0.13.0.tar.gz
gs://terraform-validator/releases/v0.13.0/terraform-validator_windows_amd64-0.13.0.tar.gz

To download the binary, you need to install the gsutil tool first. The following commands download and uncompress the Linux AMD64 version of Terraform Validator from v0.13.0 release to your local directory:

gsutil cp gs://terraform-validator/releases/v0.13.0/terraform-validator_linux_amd64-0.13.0.tar.gz .
tar -xzvf terraform-validator_linux_amd64-0.13.0.tar.gz
chmod 755 terraform-validator

The full list of releases, with release notes, is available on Github.

Binary builds are only available for versions up to 0.13.0. 0.14.0+ are only available via gcloud beta terraform vet

Disclaimer

This is not an officially supported Google product.