Skip to main content

terraform_versions

Creates, updates, deletes, gets or lists a terraform_versions resource.

Overview

Nameterraform_versions
TypeResource
Idgoogle.config.terraform_versions

Fields

NameDatatypeDescription
namestringIdentifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
deprecateTimestringOutput only. When the version is deprecated.
obsoleteTimestringOutput only. When the version is obsolete.
statestringOutput only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
supportTimestringOutput only. When the version is supported.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, terraformVersionsIdGets details about a TerraformVersion.
listSELECTlocationsId, projectsIdLists TerraformVersions in a given project and location.

SELECT examples

Lists TerraformVersions in a given project and location.

SELECT
name,
deprecateTime,
obsoleteTime,
state,
supportTime
FROM google.config.terraform_versions
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';