Skip to main content

terraform_versions

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

Overview​

Nameterraform_versions
TypeResource
Idoci.resource_manager.terraform_versions

Fields​

The following fields are returned by SELECT queries:

A list of supported Terraform versions.

NameDatatypeDescription
namestringA supported Terraform version. Example: 1.5.x
isDefaultbooleanIndicates whether this Terraform version is used by default in [CreateStack](#/en/resourcemanager/latest/Stack/CreateStack).

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionopc-request-id, compartmentIdReturns a list of supported Terraform versions for use with stacks.<br />For more information, see<br />[Listing Terraform Versions](/iaas/Content/ResourceManager/Tasks/list-tf-versions.htm).<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
compartmentIdstringA filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm).
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

SELECT examples​

Returns a list of supported Terraform versions for use with stacks.<br />For more information, see<br />[Listing Terraform Versions](/iaas/Content/ResourceManager/Tasks/list-tf-versions.htm).<br />

SELECT
name,
isDefault
FROM oci.resource_manager.terraform_versions
WHERE region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND compartmentId = '{{ compartmentId }}'
;