Difference between revisions of "Terraform map type"
Jump to navigation
Jump to search
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | map or object https://www.terraform.io/language/expressions/types#map | ||
− | + | Official example: | |
− | + | {name = "Mabel", age = 52} | |
+ | |||
map(any) | map(any) | ||
map(string) | map(string) | ||
+ | |||
+ | [[variables.tf]] | ||
+ | variable "base_tags" { | ||
+ | type = map(any) | ||
+ | description = "tags" | ||
+ | } | ||
== Related == | == Related == | ||
− | + | * <code>[[tomap]]</code> | |
− | * [[ | + | * [[Terraform]] <code>[[Terraform lookup function|lookup]]</code> function |
+ | * <code>[[Terraform functions: templatefile|templatefile]]</code> | ||
+ | * [[key/value]] | ||
== See also == | == See also == | ||
− | * {{Terraform}} | + | * {{Terraform types}} |
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 08:25, 3 September 2023
map or object https://www.terraform.io/language/expressions/types#map
Official example:
{name = "Mabel", age = 52}
map(any) map(string)
variables.tf variable "base_tags" { type = map(any) description = "tags" }
Related[edit]
tomap
- Terraform
lookup
function templatefile
- key/value
See also[edit]
Advertising: