what doest he element do in the terraform code example
Example: element function in terraform
#Element retrieves single element from the list
element(list, index)
#Example to Understand
element(["a", "b", "c"], 1)
b
element(["a", "b" , "c"], 0)
a