【发布时间】:2021-09-18 14:10:22
【问题描述】:
我正在尝试使用 shell 脚本从状态文件输出中捕获 cluster_arn 和 cluster_name,并将它们作为参数传递到我的 shell 脚本中。有人可以建议我一些方法吗?
"aws_instance" "foo" {
subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"
}
但我想将此子网 ID 值传递给我的 shell 脚本,该脚本在另一个 tf 文件中被调用。
【问题讨论】:
标签: amazon-web-services shell terraform amazon-eks