Difference between revisions of "Terraform index function"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | https://www.terraform.io/language/functions/index_function | ||
+ | |||
+ | index(list, value) | ||
+ | |||
+ | > index(["a", "b", "c"], "b") | ||
+ | 1 | ||
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
Advertising: