terraform_versions
Creates, updates, deletes, gets or lists a terraform_versions resource.
Overview​
| Name | terraform_versions |
| Type | Resource |
| Id | oci.resource_manager.terraform_versions |
Fields​
The following fields are returned by SELECT queries:
- list
A list of supported Terraform versions.
| Name | Datatype | Description |
|---|---|---|
name | string | A supported Terraform version. Example: 1.5.x |
isDefault | boolean | Indicates whether this Terraform version is used by default in [CreateStack](#/en/resourcemanager/latest/Stack/CreateStack). |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | region | opc-request-id, compartmentId | 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 /> |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | OCI 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) |
compartmentId | string | A filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
SELECT examples​
- list
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 }}'
;