16 lines
356 B
Plaintext
Raw Permalink Normal View History

2020-05-26 15:29:47 +02:00
```hcl
# locals.pkr.hcl
locals {
# locals can be bare values like:
2020-05-26 15:29:47 +02:00
wee = local.baz
2020-06-02 16:33:32 +02:00
# locals can also be set with other variables :
baz = "Foo is '${var.foo}' but not '${local.wee}'"
2020-05-26 15:29:47 +02:00
}
# Use the singular local block if you need to mark a local as sensitive
local "mylocal" {
expression = "${var.secret_api_key}"
sensitive = true
}
```