docs: Improve the digitalocean_tag usage example (#7634)
This commit is contained in:
parent
e28caa0496
commit
12dc87411e
|
@ -16,10 +16,19 @@ configuration via their ID or name.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
# Create a new SSH key
|
# Create a new tag
|
||||||
resource "digitalocean_tag" "default" {
|
resource "digitalocean_tag" "foobar" {
|
||||||
name = "foobar"
|
name = "foobar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Create a new droplet in nyc3 with the foobar tag
|
||||||
|
resource "digitalocean_droplet" "web" {
|
||||||
|
image = "ubuntu-16-04-x64"
|
||||||
|
name = "web-1"
|
||||||
|
region = "nyc3"
|
||||||
|
size = "512mb"
|
||||||
|
tags = ["${digitalocean_tag.foobar.id}"]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Argument Reference
|
## Argument Reference
|
||||||
|
|
Loading…
Reference in New Issue