Oracle Cloud
Configuration for Oracle Cloud.
- Code:
oraclecloud - Since: v2.3.0
Here is an example bash command using the Oracle Cloud provider:
Credentials
| Environment Variable Name | Description |
|---|---|
OCI_COMPARTMENT_OCID |
Compartment OCID |
OCI_FINGERPRINT |
Public key fingerprint (ignored if OCI_AUTH_TYPE is not empty) |
OCI_PRIVATE_KEY_PASSWORD |
Private key password (ignored if OCI_AUTH_TYPE is not empty) |
OCI_PRIVATE_KEY_PATH |
Private key file (ignored if OCI_AUTH_TYPE is not empty) |
OCI_REGION |
Region (it can be empty if OCI_AUTH_TYPE is not empty). |
OCI_TENANCY_OCID |
Tenancy OCID (ignored if OCI_AUTH_TYPE is not empty) |
OCI_USER_OCID |
User OCID (ignored if OCI_AUTH_TYPE is not empty) |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information here.
Additional Configuration
| Environment Variable Name | Description |
|---|---|
OCI_AUTH_TYPE |
Authorization type. Possible values: ‘instance_principal’, ‘user_principal’, ‘’. (Default: ‘’) |
OCI_CONFIG_FILE |
Path to the configuration file. (only for OCI_AUTH_TYPE=user_principal) |
OCI_HTTP_TIMEOUT |
API request timeout in seconds (Default: 60) |
OCI_POLLING_INTERVAL |
Time between DNS propagation check in seconds (Default: 2) |
OCI_PROFILE |
Profile name. (only for OCI_AUTH_TYPE=user_principal) |
OCI_PROPAGATION_TIMEOUT |
Maximum waiting time for DNS propagation in seconds (Default: 60) |
OCI_TTL |
The TTL of the TXT record used for the DNS challenge in seconds (Default: 120) |
TF_VAR_fingerprint |
Alias on OCI_FINGERPRINT |
TF_VAR_private_key_path |
Alias on OCI_PRIVATE_KEY_PATH |
TF_VAR_region |
Alias on OCI_REGION |
TF_VAR_tenancy_ocid |
Alias on OCI_TENANCY_OCID |
TF_VAR_user_ocid |
Alias on OCI_USER_OCID |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information here.