Skip to content

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

Description

@noordeen03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions