我有一堆模块。我想将它们全部从
module "foo" {
# whatever
}
到
module "foo" {
count = 1 # because I want to make creating the module conditional, and this is the only way to do it
# whatever
}
terraform plan
告诉我它将拆除这些模块创建的所有资源并创建新的资源,大概是因为计数为 1 的资源与没有计数的资源不一样,对吗? 有办法避免这种情况吗?