由于terraform apply似乎显示了它应该做的所有事情,而且我仍然需要输入,所以我认为在非交互式环境中使用它yes几乎没有什么用处(例如在 jenkins 上运行 terraform,并在和之间进行手动确认步骤)。terraform planplanapply
terraform apply
yes
terraform plan
plan
apply
从命令行运行命令时使用terraform plan+有什么优点吗?terraform apply <plan_file>
terraform apply <plan_file>
terraform
terraform ×1