应使用“Terraform apply --target”来指定目标资源。在命令行中,使用双破折号(--)来指定选项,而不是使用单破折号(-)。
例如,要将Terraform应用于一个“aws_instance”资源,可以运行以下命令:
terraform apply --target=aws_instance.example
这将只应用与“aws_instance.example”相关的更改,而不是应用项目中的所有更改。
上一篇:不能使用‘open(filename)’两次打开同一文件。”
下一篇:不能双击