Difference between revisions of "Terraform index function"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | https://www.terraform.io/language/functions/index_function | ||
+ | index(list, value) | ||
+ | |||
+ | > index(["a", "b", "c"], "b") | ||
+ | 1 | ||
== See also == | == See also == | ||
* {{Terraform functions}} | * {{Terraform functions}} | ||
− | [[ | + | [[Category:Terrafrom]] |
Latest revision as of 21:26, 27 February 2022
https://www.terraform.io/language/functions/index_function
index(list, value)
> index(["a", "b", "c"], "b") 1
See also[edit]
Advertising: