diff --git a/website/docs/configuration/resources.html.md b/website/docs/configuration/resources.html.md index eecd8b3ae..b6d208a96 100644 --- a/website/docs/configuration/resources.html.md +++ b/website/docs/configuration/resources.html.md @@ -246,7 +246,7 @@ resource "aws_instance" "server" { ami = "ami-a1b2c3d4" instance_type = "t2.micro" - tags { + tags = { Name = "Server ${count.index}" } } @@ -309,7 +309,7 @@ resource "aws_instance" "server" { instance_type = "t2.micro" subnet_id = var.subnet_ids[count.index] - tags { + tags = { Name = "Server ${count.index}" } } @@ -396,7 +396,7 @@ resource "aws_instance" "server" { instance_type = "t2.micro" subnet_id = each.key # note: each.key and each.value are the same for a set - tags { + tags = { Name = "Server ${each.key}" } } diff --git a/website/docs/modules/composition.html.markdown b/website/docs/modules/composition.html.markdown index 5e5437ec4..18a549729 100644 --- a/website/docs/modules/composition.html.markdown +++ b/website/docs/modules/composition.html.markdown @@ -89,7 +89,7 @@ pass those values into the module from data sources instead: ```hcl data "aws_vpc" "main" { - tags { + tags = { Environment = "production" } } diff --git a/website/docs/state/workspaces.html.md b/website/docs/state/workspaces.html.md index 568d4f823..6f073a36e 100644 --- a/website/docs/state/workspaces.html.md +++ b/website/docs/state/workspaces.html.md @@ -89,7 +89,7 @@ tagging behavior: ```hcl resource "aws_instance" "example" { - tags { + tags = { Name = "web - ${terraform.workspace}" }