Back to Lego

Oracle Cloud

docs/content/dns/zz_gen_oraclecloud.md

4.35.23.6 KB
Original Source
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. --> <!-- providers/dns/oraclecloud/oraclecloud.toml --> <!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->

Configuration for Oracle Cloud.

<!--more-->
  • Code: oraclecloud
  • Since: v2.3.0

Here is an example bash command using the Oracle Cloud provider:

bash
# Using API Key authentication:

OCI_PRIVATE_KEY_PATH="~/.oci/oci_api_key.pem" \
OCI_PRIVATE_KEY_PASSWORD="secret" \
OCI_TENANCY_OCID="ocid1.tenancy.oc1..secret" \
OCI_USER_OCID="ocid1.user.oc1..secret" \
OCI_FINGERPRINT="00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00" \
OCI_REGION="us-phoenix-1" \
OCI_COMPARTMENT_OCID="ocid1.tenancy.oc1..secret" \
lego --dns oraclecloud -d '*.example.com' -d example.com run

# Using Instance Principal authentication (when running on OCI compute instances):
# https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm

OCI_AUTH_TYPE="instance_principal" \
OCI_COMPARTMENT_OCID="ocid1.tenancy.oc1..secret" \
lego --dns oraclecloud -d '*.example.com' -d example.com run

# Using profile session token:

OCI_AUTH_TYPE="user_principal" \
OCI_PROFILE="xxx" \
OCI_COMPARTMENT_OCID="ocid1.tenancy.oc1..secret" \
lego --dns oraclecloud -d '*.example.com' -d example.com run

Credentials

Environment Variable NameDescription
OCI_COMPARTMENT_OCIDCompartment OCID
OCI_FINGERPRINTPublic key fingerprint (ignored if OCI_AUTH_TYPE is not empty)
OCI_PRIVATE_KEY_PASSWORDPrivate key password (ignored if OCI_AUTH_TYPE is not empty)
OCI_PRIVATE_KEY_PATHPrivate key file (ignored if OCI_AUTH_TYPE is not empty)
OCI_REGIONRegion (it can be empty if OCI_AUTH_TYPE is not empty).
OCI_TENANCY_OCIDTenancy OCID (ignored if OCI_AUTH_TYPE is not empty)
OCI_USER_OCIDUser 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]({{% ref "dns#configuration-and-credentials" %}}).

Additional Configuration

Environment Variable NameDescription
OCI_AUTH_TYPEAuthorization type. Possible values: 'instance_principal', 'user_principal', ''. (Default: '')
OCI_CONFIG_FILEPath to the configuration file. (only for OCI_AUTH_TYPE=user_principal)
OCI_HTTP_TIMEOUTAPI request timeout in seconds (Default: 60)
OCI_POLLING_INTERVALTime between DNS propagation check in seconds (Default: 2)
OCI_PROFILEProfile name. (only for OCI_AUTH_TYPE=user_principal)
OCI_PROPAGATION_TIMEOUTMaximum waiting time for DNS propagation in seconds (Default: 60)
OCI_TTLThe TTL of the TXT record used for the DNS challenge in seconds (Default: 120)
TF_VAR_fingerprintAlias on OCI_FINGERPRINT
TF_VAR_private_key_pathAlias on OCI_PRIVATE_KEY_PATH
TF_VAR_regionAlias on OCI_REGION
TF_VAR_tenancy_ocidAlias on OCI_TENANCY_OCID
TF_VAR_user_ocidAlias on OCI_USER_OCID

The environment variable names can be suffixed by _FILE to reference a file instead of a value. More information [here]({{% ref "dns#configuration-and-credentials" %}}).

More information

<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. --> <!-- providers/dns/oraclecloud/oraclecloud.toml --> <!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->