Manage Terraform versions available on HCP Terraform and Terraform Enterprise.
Basic Usage:
resource "tfe_terraform_version" "test" {
version = "1.1.2-custom"
url = "https://tfe-host.com/path/to/terraform.zip"
sha = "e75ac73deb69a6b3aa667cb0b8b731aee79e2904"
}
The following arguments are supported:
version
- (Required) A semantic version string in N.N.N or N.N.N-bundleName format.url
- (Required) The URL where a ZIP-compressed 64-bit Linux binary of this version can be downloaded.sha
- (Required) The SHA-256 checksum of the compressed Terraform binary.official
- (Optional) Whether or not this is an official release of Terraform. Defaults to "false".enabled
- (Optional) Whether or not this version of Terraform is enabled for use in HCP Terraform and Terraform Enterprise. Defaults to "true".beta
- (Optional) Whether or not this version of Terraform is beta pre-release. Defaults to "false".deprecated
- (Optional) Whether or not this version of Terraform is deprecated. Defaults to "false".deprecated_reason
- (Optional) Additional context about why a version of Terraform is deprecated. Defaults to "null" unless deprecated
is true.id
The ID of the Terraform versionTerraform versions can be imported; use <TERRAFORM VERSION ID>
or <TERRAFORM VERSION NUMBER>
as the import ID. For example:
terraform import tfe_terraform_version.test tool-L4oe7rNwn7J4E5Yr
terraform import tfe_terraform_version.test 1.1.2