Update locals.html.md

I've just wasted an hour to two hours trying to find the problem to finally realize that although I declare a "locals" block, it's referred to as "local".  This is pretty weird! So let's be be clear about this.
pull/26231/head
Lance Kind 6 years ago committed by Pam Selle
parent 0cd269c00f
commit 8d1b3e5999

@ -51,7 +51,7 @@ locals {
locals {
# Common tags to be assigned to all resources
common_tags = {
Service = local.service_name
Service = local.service_name #notice it's "local," no "s."
Owner = local.owner
}
}
@ -65,7 +65,7 @@ each other in order to build more complex values from simpler ones.
resource "aws_instance" "example" {
# ...
tags = local.common_tags
tags = local.common_tags #notice it's "local," no "s."
}
```

Loading…
Cancel
Save