terraform 常用内置函数
basename(“/home/abc/file.txt “) ==> file.txt 这个会返回路径的最后的文件名
coalesce(“”,””,”hello”) ==> hello 这个会返回第一个非空
element(list,index) List中的具体某个元素
format(formats, args ) 格式化
index(list,elem) 找到List中的具体第几个是我们想要查找的elements
join(delim,list)
lookup(map,key,[default])
lower(string)
merge(map1,map2)
replace(string,search,replace)
split(delim,string)
substr()
timestap()
uuid()
values(map)
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021