📜  terraform 中的查找函数 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:35.995000             🧑  作者: Mango

代码示例1
#lookup retrieves the value of a single element from a map, given its key. 
#If the given key does not exist, a the given default value is returned instead.

lookup(map, key, default)

#Example to Understand

lookup({a="ay", b="bee"}, "a", "what?")
ay

lookup({a="ay", b="bee"}, "c", "what?")
what?