From 12dc87411ef39b3eb45549647561bcf85fe920a8 Mon Sep 17 00:00:00 2001 From: Joonas Bergius Date: Wed, 13 Jul 2016 16:59:50 -0600 Subject: [PATCH] docs: Improve the digitalocean_tag usage example (#7634) --- .../source/docs/providers/do/r/tag.html.markdown | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/website/source/docs/providers/do/r/tag.html.markdown b/website/source/docs/providers/do/r/tag.html.markdown index 562e400c6..02e0a9694 100644 --- a/website/source/docs/providers/do/r/tag.html.markdown +++ b/website/source/docs/providers/do/r/tag.html.markdown @@ -16,10 +16,19 @@ configuration via their ID or name. ## Example Usage ``` -# Create a new SSH key -resource "digitalocean_tag" "default" { +# Create a new tag +resource "digitalocean_tag" "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