IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

Please provide option to increase the cluster creation query interval #2207

Open arjunsbabu opened 3 years ago

arjunsbabu commented 3 years ago

Hi Team ,

We have a terraform script to deploy classic/VPC ROKS clusters . By default terraform is checking every 10 seconds for cluster creation status. We need a terraform parameter to customize this. Right now i guess its hardcoded https://github.com/IBM-Cloud/terraform-provider-ibm/blob/1b5197455f49489c6e4913712b1e30b032ff8605/ibm/resource_ibm_container_vpc_cluster.go/#L1108

Affected Resource(s)

Please list the resources as a list, for example: -ibm_container_cluster -ibm_container_vpc_cluster

Current output

ibm_container_cluster.RHOS: Still creating... [1h54m20s elapsed]
ibm_container_cluster.RHOS: Still creating... [1h54m30s elapsed]

Steps to Reproduce

  1. terraform apply

The intention for this request is to minimize the network error while calling ibmcloud api. So we would like to make it every 30seconds or so. Certain times we are seeing ibmcloud clusters are taking more than 2hrs to become ready. Hence we have added wait_time_minutes: 300 as well

hkantare commented 2 years ago

As per Terraform desgin we don't have any parameter which can control this behaviour..May be a request needs to be opened at terraform core...