我的计划文件以特定的名称保存。我尝试过terraform plan planfilename.plan -out=tfplan
和其他包含计划文件名的变体
发布于 2021-12-15 20:28:51
若要将计划保存到可以使用的位置,请使用:
terraform plan --out=<filename>
要检查此计划,可以使用show
命令:
terraform show <filename>
若要应用此计划,可以执行以下操作:
terraform apply <filename>
发布于 2021-12-15 20:22:45
terraform plan -out=tfplan
标志"-out“指定输出文件名。因此,在这种情况下,您的输出文件是"tfplan“。如果您想指定多个输出文件,无论出于什么原因,您都可以执行一些奇怪的操作,例如:
terraform plan -out=tfplan; cat tfplan > planefilename.plan
https://stackoverflow.com/questions/70369678
复制相似问题