Skip to content

Commit 12dc874

Browse files
joonasstack72
authored andcommitted
docs: Improve the digitalocean_tag usage example (hashicorp#7634)
1 parent e28caa0 commit 12dc874

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

website/source/docs/providers/do/r/tag.html.markdown

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ configuration via their ID or name.
1616
## Example Usage
1717

1818
```
19-
# Create a new SSH key
20-
resource "digitalocean_tag" "default" {
19+
# Create a new tag
20+
resource "digitalocean_tag" "foobar" {
2121
name = "foobar"
2222
}
23+
24+
# Create a new droplet in nyc3 with the foobar tag
25+
resource "digitalocean_droplet" "web" {
26+
image = "ubuntu-16-04-x64"
27+
name = "web-1"
28+
region = "nyc3"
29+
size = "512mb"
30+
tags = ["${digitalocean_tag.foobar.id}"]
31+
}
2332
```
2433

2534
## Argument Reference

0 commit comments

Comments
 (0)