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
Terraform import for ibm_container_vpc_cluster is failing as "zones" blocks are missing.
❯ terraform plan -generate-config-out=generated.tf
ibm_container_vpc_cluster.cluster: Preparing import... [id=c4i5focd0ltfi203fbog]
data.ibm_resource_group.resourceGroup: Reading...
ibm_container_vpc_cluster.cluster: Refreshing state... [id=c4i5focd0ltfi203fbog]
data.ibm_is_vpc.vpc: Reading...
data.ibm_resource_group.resourceGroup: Read complete after 3s [id=a9f52d88da0d41c9a0c52cd2dad7eb74]
data.ibm_is_vpc.vpc: Read complete after 8s [id=r006-f959e8c7-d35b-479e-ac7b-4df32d07c007]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Warning: Config generation is experimental
│
│ Generating configuration during import is currently experimental, and the generated configuration format may change in future versions.
╵
╷
│ Error: Insufficient zones blocks
│
│ on generated.tf line 1:
│ (source code not available)
│
│ At least 1"zones" blocks are required.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
❯ terraform version
Terraform v1.5.7
on darwin_amd64
+ provider registry.terraform.io/ibm-cloud/ibm v1.61.0
Affected Resource(s)
ibm_container_vpc_cluster
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
The resource should be imported correctly by generating the resource configuration and the consequent Terraform apply should be successful.
Actual Behavior
The generated Terraform configuration is the following
# __generated__ by Terraform# Please review these resources and move them into your main configuration files.# __generated__ by Terraformresource"ibm_container_vpc_cluster""cluster" {
cos_instance_crn=nullcrk=nulldisable_public_service_endpoint=falseentitlement=nullflavor=""force_delete_storage=nullhost_pool_id=nullimage_security_enforcement=truekms_account_id=nullkms_instance_id=nullkube_version="4.12.51_openshift"name="ic4v-roks-dallas-nonprod"operating_system=nullpatch_version=nullpod_subnet="172.17.0.0/18"resource_group_id="a9f52d88da0d41c9a0c52cd2dad7eb74"retry_patch_version=nullsecondary_storage=nullservice_subnet="172.21.0.0/16"tags=["nextgen", "nonprod"]
update_all_workers=nullvpc_id="r006-f959e8c7-d35b-479e-ac7b-4df32d07c007"wait_for_worker_update=nullwait_till=nullworker_count=0worker_labels={}
}
But the import fails with the following message
╷
│ Error: Insufficient zones blocks
│
│ on generated.tf line 1:
│ (source code not available)
│
│ At least 1"zones" blocks are required.
╵
Steps to Reproduce
terraform plan -generate-config-out=generated.tf
Important Factoids
Openshift Cluster on VPC version 4.12.51_1585_openshift
Terraform import for
ibm_container_vpc_cluster
is failing as "zones" blocks are missing.Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
The resource should be imported correctly by generating the resource configuration and the consequent Terraform apply should be successful.
Actual Behavior
The generated Terraform configuration is the following
But the import fails with the following message
Steps to Reproduce
terraform plan -generate-config-out=generated.tf
Important Factoids
4.12.51_1585_openshift
References
The text was updated successfully, but these errors were encountered: