mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-05 13:00:26 -05:00
The comment on first line of the code example is 82 characters long and is cut on the 80-th character when viewed online. The second line contains only two letters "on" without # in front. The comment is displayed on two lines anyway, it is better if it is split to two lines of less than 80 characters.
1.1 KiB
1.1 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| digitalocean | Provider: DigitalOcean | docs-do-index | 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. |
DigitalOcean Provider
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.
Use the navigation to the left to read about the available resources.
Example Usage
# Set the variable value in *.tfvars file
# or using -var="do_token=..." CLI option
variable "do_token" {}
# Configure the DigitalOcean Provider
provider "digitalocean" {
token = "${var.do_token}"
}
# Create a web server
resource "digitalocean_droplet" "web" {
...
}
Argument Reference
The following arguments are supported:
token- (Required) This is the DO API token. This can also be specified with theDIGITALOCEAN_TOKENshell environment variable.