我创建了一些带有 main.tf 的虚拟机,terraform 生成了一个 cluster.tfstate 文件。
现在因为重构,我把VM资源定义移到一个模块中,并在main.tf中引用这个模块。当我运行时terraform apply --state=./cluster.tfstate,terraform 会破坏并重新创建这些虚拟机吗?
terraform apply --state=./cluster.tfstate
我希望它不会。我的理解正确吗?
terraform
terraform ×1