website/docs: replace outdated tag syntax (#23111)

Fixes #21614
This commit is contained in:
charlottemach 2019-10-24 16:23:17 +01:00 committed by Kristin Laemmert
parent 90ecd17bd5
commit e3d38046dc
3 changed files with 5 additions and 5 deletions

View File

@ -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}"
}
}

View File

@ -89,7 +89,7 @@ pass those values into the module from data sources instead:
```hcl
data "aws_vpc" "main" {
tags {
tags = {
Environment = "production"
}
}

View File

@ -89,7 +89,7 @@ tagging behavior:
```hcl
resource "aws_instance" "example" {
tags {
tags = {
Name = "web - ${terraform.workspace}"
}