小编Sus*_*ush的帖子

Bash-获取存储在 terraform 文件中的值

我需要在 bash 脚本中获取存储在 terraform 文件中的值。

cat custom.tfvars
Val1 = {a1 = "12", b2 = "0.5", "count" = 2}
Val2 = {a1 = "14", b2 = "0.5", "count" = 1}
Run Code Online (Sandbox Code Playgroud)

我想编写一个脚本来获取 的值Val1(count)

谢谢。

linux bash shell terraform

-2
推荐指数
1
解决办法
3708
查看次数

标签 统计

bash ×1

linux ×1

shell ×1

terraform ×1