Resolving "terraform apply" Timeout Errors in GCP: QuickStart Guide
Blog post from Snowplow
When setting up the Snowplow QuickStart Guide on Google Cloud Platform (GCP), users may encounter timeout errors during the terraform apply step, especially when creating Cloud SQL instances, due to the initialization process exceeding the default timeout. This issue often occurs during the first deployment attempt, as Cloud SQL provisioning can take over 20 minutes, causing Terraform to time out. To resolve this, users can extend the timeout duration by updating to the latest Terraform module version (v0.1.1), which increases the timeout to 30 minutes, or delete the Cloud SQL instance and reapply if necessary. Other factors such as NAT configuration and region-specific latency can also affect provisioning times, and users are advised to ensure correct NAT settings and consider regions with faster setup times. To verify instance readiness, the gcloud sql instances describe command can be used to check the instance state. By addressing these issues, users can effectively mitigate disruptions during the Snowplow QuickStart setup on GCP.