First time using Terraform Cloud: Preparing the remote plan never completes

It’s my first try using Terraform Cloud. I had use terraform “local” to deploy (3 ec2 instanes, alb, dns records and acm certificate) and then I decided to try Terraform Cloud. So I changed the backend, run terraform init, and it seems that the state is now on Terraform Cloud.

On my first “terraform plan” I got some errors which I attributed to changes in 13.0. I’m using 0.12.29 locally and configured Terraform workspace setting to use the same.

But when I try “terraform plan” again, it just says “Preparing the remote plan…” and it never progresses.

In the Terraform Cloud UI it justs says “Waiting for configuration”

This is the output of the command after enable logs with export TF_LOG=TRACE:

2020/08/21 09:58:43 [INFO] Terraform version: 0.12.29
2020/08/21 09:58:43 [INFO] Go runtime version: go1.12.13
2020/08/21 09:58:43 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/2.0.0/versions/0.12.29/terraform", "plan"}
2020/08/21 09:58:43 [DEBUG] Attempting to open CLI config file: /Users/ecerulm/.terraformrc
2020/08/21 09:58:43 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/08/21 09:58:43 Loading CLI configuration from /Users/ecerulm/.terraform.d/credentials.tfrc.json
2020/08/21 09:58:43 [INFO] CLI command args: []string{"plan"}
2020/08/21 09:58:43 [TRACE] Meta.Backend: built configuration for "remote" backend with hash value 2325790942
2020/08/21 09:58:43 [TRACE] Preserving existing state lineage "e6974238-8c1b-b8b0-6550-db78e5f5d62e"
2020/08/21 09:58:43 [TRACE] Preserving existing state lineage "e6974238-8c1b-b8b0-6550-db78e5f5d62e"
2020/08/21 09:58:43 [TRACE] Meta.Backend: working directory was previously initialized for "remote" backend
2020/08/21 09:58:43 [TRACE] Meta.Backend: using already-initialized, unchanged "remote" backend configuration
2020/08/21 09:58:43 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
2020/08/21 09:58:43 [TRACE] HTTP client GET request to https://app.terraform.io/.well-known/terraform.json
2020/08/21 09:58:43 [DEBUG] Retrieve version constraints for service tfe.v2.1 and product terraform
2020/08/21 09:58:43 [TRACE] HTTP client GET request to https://checkpoint-api.hashicorp.com/v1/versions/tfe.v2.1?product=terraform
2020/08/21 09:58:44 [TRACE] Meta.Backend: instantiated backend of type *remote.Remote
2020/08/21 09:58:44 [DEBUG] checking for provider in "."
2020/08/21 09:58:44 [DEBUG] checking for provider in "/usr/local/Cellar/tfenv/2.0.0/versions/0.12.29"
2020/08/21 09:58:44 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/08/21 09:58:44 [DEBUG] found provider "terraform-provider-aws_v2.70.0_x4"
2020/08/21 09:58:44 [DEBUG] found valid plugin: "aws", "2.70.0", "/Users/ecerulm/infrastructure/nifi/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.70.0_x4"
2020/08/21 09:58:44 [DEBUG] checking for provisioner in "."
2020/08/21 09:58:44 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/2.0.0/versions/0.12.29"
2020/08/21 09:58:44 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/08/21 09:58:44 [TRACE] Meta.Backend: backend *remote.Remote supports operations
2020/08/21 09:58:45 [INFO] backend/remote: starting Plan operation
Running plan in the remote backend. Output will stream here. Pressing Ctrl-C
will stop streaming the logs, but will not stop the plan running remotely.

Preparing the remote plan...

Hello
did you know how to solve this issue, as I am having the same problem

Hi @ecerulm,

Unfortunately I think your first run coincided with the following Terraform Cloud incident:

That problem has now been resolved, so if you are still having problems I would suggest contacting HashiCorp Support for individual assistance.

Thanks!