github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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 ``` 20 # Set the variable value in *.tfvars file or using -var="do_token=..." CLI option 21 variable "do_token" {} 22 23 # Configure the DigitalOcean Provider 24 provider "digitalocean" { 25 token = "${var.do_token}" 26 } 27 28 # Create a web server 29 resource "digitalocean_droplet" "web" { 30 ... 31 } 32 ``` 33 34 ## Argument Reference 35 36 The following arguments are supported: 37 38 * `token` - (Required) This is the DO API token. This can also be specified 39 with the `DIGITALOCEAN_TOKEN` shell environment variable. 40