github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/opc/index.html.markdown (about)

     1  ---
     2  layout: "opc"
     3  page_title: "Provider: Oracle Public Cloud"
     4  sidebar_current: "docs-opc-index"
     5  description: |-
     6    The Oracle Public Cloud provider is used to interact with the many resources supported by the Oracle Public Cloud. The provider needs to be configured with credentials for the Oracle Public Cloud API.
     7  ---
     8  
     9  # Oracle Public Cloud Provider
    10  
    11  The Oracle Public Cloud provider is used to interact with the many resources supported by the Oracle Public Cloud. The provider needs to be configured with credentials for the Oracle Public Cloud API.
    12  
    13  Use the navigation to the left to read about the available resources.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  # Configure the Oracle Public Cloud
    19  provider "opc" {
    20    user            = "..."
    21    password        = "..."
    22    identity_domain = "..."
    23    endpoint        = "..."
    24  }
    25  
    26  # Create an IP Reservation
    27  resource "opc_compute_ip_reservation" "production" {
    28    parent_pool = "/oracle/public/ippool"
    29    permanent = true
    30  }
    31  ```
    32  
    33  ## Argument Reference
    34  
    35  The following arguments are supported:
    36  
    37  * `user` - (Optional) The username to use, generally your email address. It can also
    38    be sourced from the `OPC_USERNAME` environment variable.
    39  
    40  * `password` - (Optional) The password associated with the username to use. It can also be sourced from
    41    the `OPC_PASSWORD` environment variable.
    42  
    43  * `identity_domain` - (Optional) The identity domain to use. It can also be sourced from
    44    the `OPC_IDENTITY_DOMAIN` environment variable.
    45  
    46  * `endpoint` - (Optional) The API endpoint to use, associated with your Oracle Public Cloud account. This is known as the `REST Endpoint` within the Oracle portal. It can also be sourced from the `OPC_ENDPOINT` environment variable.
    47  
    48  * `max_retry_timeout` - (Optional) The maximum number of seconds to wait for a successful response when operating on resources within Oracle Public Cloud. It can also be sourced from the `OPC_MAX_RETRY_TIMEOUT` environment variable. Defaults to 3000 seconds.
    49  
    50  ## Testing
    51  
    52  Credentials must be provided via the `OPC_USERNAME`, `OPC_PASSWORD`,
    53  `OPC_IDENTITY_DOMAIN` and `OPC_ENDPOINT` environment variables in order to run
    54  acceptance tests.