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

     1  ---
     2  layout: "digitalocean"
     3  page_title: "Provider: DigitalOcean"
     4  sidebar_current: "docs-do-index"
     5  description: |-
     6    The DigitalOcean (DO) provider is used to interact with the resources supported by DigitalOcean. The provider needs to be configured with the proper credentials before it can be used.
     7  ---
     8  
     9  # DigitalOcean Provider
    10  
    11  The DigitalOcean (DO) provider is used to interact with the
    12  resources supported by DigitalOcean. The provider needs to be configured
    13  with the proper credentials before it can be used.
    14  
    15  Use the navigation to the left to read about the available resources.
    16  
    17  ## Example Usage
    18  
    19  ```hcl
    20  # Set the variable value in *.tfvars file
    21  # or using -var="do_token=..." CLI option
    22  variable "do_token" {}
    23  
    24  # Configure the DigitalOcean Provider
    25  provider "digitalocean" {
    26    token = "${var.do_token}"
    27  }
    28  
    29  # Create a web server
    30  resource "digitalocean_droplet" "web" {
    31    # ...
    32  }
    33  ```
    34  
    35  ## Argument Reference
    36  
    37  The following arguments are supported:
    38  
    39  * `token` - (Required) This is the DO API token. This can also be specified
    40    with the `DIGITALOCEAN_TOKEN` shell environment variable.
    41