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:
parent
fa4917172d
commit
eb7a427fba
|
@ -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…
Reference in New Issue