python-terraform icon indicating copy to clipboard operation
python-terraform copied to clipboard

connect: connection refused - https://registry.terraform.io/.well-known/terraform.json

Open noordeen03 opened this issue 3 years ago • 1 comments

Hi, We are trying run terraform init with python_terraform library as follows , return_code, stdout, stderr = tf.init(capture_output=True, reconfigure=True)

In local, it is getting executed successfully. But in cloud run, we are getting the following error,

Failed to query available provider packages\n\nCould not retrieve the list of available versions for provider\nhashicorp/google: could not connect to registry.terraform.io: Failed to\nrequest discovery document: Get\n"https://registry.terraform.io/.well-known/terraform.json": connect: connection timeout\n\n'

Can anyone help us understand the cause for this failure

noordeen03 avatar May 27 '22 11:05 noordeen03

I'm running into the same issue. Any luck with it?

Kunalkatdare avatar Jul 18 '22 17:07 Kunalkatdare