Oracle Cloud Infrastructure Classic Provider
The Oracle Cloud Infrastructure Classic provider (formerly know as the Oracle Public Cloud provider) is used to interact with the many resources supported by the Oracle Cloud Infrastructure Classic and Oracle Cloud at Customer infrastructure services. The provider needs to be configured with credentials for the Oracle Cloud Account.
Use the navigation to the left to read about the available resources.
Example Usage
# Configure the Oracle Cloud Infrastructure Classic provider
provider "opc" {
user = "..."
password = "..."
identity_domain = "..."
endpoint = "..."
}
# Create an IP Reservation
resource "opc_compute_ip_reservation" "production" {
parent_pool = "/oracle/public/ippool"
permanent = true
}
Argument Reference
The following arguments are supported:
-
user- (Optional) The username to use, generally your email address. It can also be sourced from theOPC_USERNAMEenvironment variable. -
password- (Optional) The password associated with the username to use. It can also be sourced from theOPC_PASSWORDenvironment variable. -
identity_domain- (Optional) The Identity Domain name (for Traditional accounts) or Identity Service ID (for IDCS accounts) of the environment to use. It can also be sourced from theOPC_IDENTITY_DOMAINenvironment variable. -
endpoint- (Optional) The Compute Classic API endpoint to use, associated with your Oracle Cloud Account. This is known as theREST Endpointwithin the Oracle portal. It can also be sourced from theOPC_ENDPOINTenvironment variable. -
storage_endpoint- (Optional) The Storage Classic API endpoint to use, associated with your Oracle Storage Cloud account. This is known as theREST Endpointwithin the Oracle portal. Can also be set via theOPC_STORAGE_ENDPOINTenvironment variable. -
storage_service_id- (Optional) The Storage Service ID for authentication with thestorage_endpointIf not set theidentity_domainvalue is used. Can also be set via theOPC_STORAGE_SERVICE_IDenvironment variable. -
max_retries- (Optional) The maximum number of tries to make for a successful response when operating on resources. It can also be sourced from theOPC_MAX_RETRIESenvironment variable. Defaults to 1. -
insecure- (Optional) Skips TLS Verification for using self-signed certificates. Should only be used if absolutely needed. Can also via setting theOPC_INSECUREenvironment variable totrue.
Testing
Credentials must be provided via the OPC_USERNAME, OPC_PASSWORD, OPC_IDENTITY_DOMAIN and OPC_ENDPOINT environment variables in order to run acceptance tests.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/opc/index.html