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.
This commit is contained in:
Lance Kind 2020-05-21 19:11:09 -07:00 committed by Nick Fagerlund
parent fa4917172d
commit eb7a427fba
1 changed files with 2 additions and 2 deletions

View File

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