You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which fetches the state of my cluster and stores in the .tfstate file. However, no matter what when I run terraform plan -var-file=<tfvarfile> it always says it will destroy and recreate my cluster (which I really dont want as I would want to migrate some production clusters to the same).
The problem appears to be the no_subnet property. The tfstate file shows the cluster as having it set to null, but I am unable to define null in the resource above as it will default to false (causing a force replacement) or if I set to true (causes a force replacement). Is there any way around this?
Hello, I am trying to move management of existing clusters to Terraform and am running into issues (potentially where they are old clusters).
I am doing
terraform import ibm_container_cluster.cluster <clusterid>
where the resource is defined as follows:which fetches the state of my cluster and stores in the .tfstate file. However, no matter what when I run
terraform plan -var-file=<tfvarfile>
it always says it will destroy and recreate my cluster (which I really dont want as I would want to migrate some production clusters to the same).The problem appears to be the no_subnet property. The tfstate file shows the cluster as having it set to null, but I am unable to define null in the resource above as it will default to false (causing a force replacement) or if I set to true (causes a force replacement). Is there any way around this?
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Expected Behavior
What should have happened?
No difference between plans
Actual Behavior
What actually happened?
will destroy and force create a new cluster
Important Factoids
References
N/A
The text was updated successfully, but these errors were encountered: