Open argeiger opened 4 years ago
I tried this, with 1000 data volumes and 1000 vsi.
variable "count" {
default = 1000
}
resource "ibm_is_volume" "storage" {
count = var.count
name = "${var.name}-vol-${count.index}"
profile = "10iops-tier"
zone = "us-south-1"
}
resource "ibm_is_instance" "testacc_instance" {
count = var.count
name = "${var.name}-vsi-${count.index}"
image = "2erf3f33dd3d33d3dd33"
profile = "bx2-2x8"
primary_network_interface {
subnet = "0ederervevrver"
}
vpc = "vervrevveewewwedwsxcscscdf"
zone = "us-south-1"
keys = ["34rf33rvrcvvrervefdecc"]
volumes = [ibm_is_volume.storage[count.index].id]
}
was able to plan in 1 mins
2024-05-16T14:33:06.272+0530 [INFO] backend/local: starting Plan operation
....
2024-05-16T14:34:17.956+0530 [INFO] backend/local: plan operation completed
Terraform Version
Terraform v0.12.20
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
I have 1000 instances with each having a data volume created and attached
Expected Behavior
Plan to have been generated in a quicker period of time
Actual Behavior
Took approximately 10 minutes for the plan to be created:
real 9m36.350s user 15m9.592s sys 0m31.630s
Without the volumes and 1000 instances, it took: real 0m17.743s user 0m20.522s sys 0m4.127s
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan