Initializing the backend...Initializing provider plugins...- Finding latest version of tencentcloudstack/tencentcloud...╷│ Error: Failed to install provider││ Error while installing tencentcloudstack/tencentcloud v1.78.5: could not query provider registry for registry.terraform.io/tencentcloudstack/tencentcloud: failed to retrieve authentication checksums for provider: the request failed after 2 attempts, please try again later: Get│ "https://github.com/tencentcloudstack/terraform-provider-tencentcloud/releases/download/v1.78.5/terraform-provider-tencentcloud_1.78.5_SHA256SUMS": context deadline exceeded╵
Initializing the backend...Initializing provider plugins...- Finding latest version of tencentcloudstack/tencentcloud...╷│ Error: Failed to query available provider packages││ Could not retrieve the list of available versions for provider tencentcloudstack/tencentcloud: could not connect to registry.terraform.io: Failed to request discovery document: Get "https://registry.terraform.io/.well-known/terraform.json": net/http: request canceled while waiting for connection│ (Client.Timeout exceeded while awaiting headers)╵
registry.terraform.io
default image source of Terraform is deployed outside the Chinese mainland, which means image pull from the Chinese mainland may be slow or fail due to network issues. In this case, you can use the image source provided by Tencent Cloud..terraformrc
or terraform.rc
configuration file as needed and put it together with other configuration files in the same folder. The path varies by server operating system:terraform.rc
and put in the %APPDATA%
directory of the user. The physical path of the directory varies by Windows version and system configuration and can be located through $env:APPDATA
in PowerShell..terraformrc
and put in the root directory of the user. You can also use the TF_CLI_CONFIG_FILE
environment variable to specify the path of the Terraform CLI configuration file. Any file of this type should follow the *.tfrc
naming convention. For more information, see CLI Configuration File..terraformrc
file in the root directory of the user as follows:provider_installation {network_mirror {url = "https://mirrors.tencent.com/terraform/"}}
terraform init
terraform init
command to initialize the configuration.provider
field in the configuration file and download the latest module and plugin. If the following message is printed, the initialization is successful.Initializing the backend...Initializing provider plugins...- Finding latest version of tencentcloudstack/tencentcloud...- Installing tencentcloudstack/tencentcloud v1.78.5...- Installed tencentcloudstack/tencentcloud v1.78.5 (verified checksum)Terraform has created a lock file .terraform.lock.hcl to record the providerselections it made above. Include this file in your version control repositoryso that Terraform can guarantee to make the same selections by default whenyou run "terraform init" in the future.╷│ Warning: Incomplete lock file information for providers││ Due to your customized provider installation methods, Terraform was forced to calculate lock file checksums locally for the following providers:│ - tencentcloudstack/tencentcloud││ The current .terraform.lock.hcl file only includes checksums for darwin_amd64, so Terraform running on another platform will fail to install these providers.││ To calculate additional checksums for another platform, run:│ terraform providers lock -platform=linux_amd64│ (where linux_amd64 is the platform to generate)╵Terraform has been successfully initialized!You may now begin working with Terraform. Try running "terraform plan" to seeany changes that are required for your infrastructure. All Terraform commandsshould now work.If you ever set or change modules or backend configuration for Terraform,rerun this command to reinitialize your working directory. If you forget, othercommands will detect it and remind you to do so if necessary.
Was this page helpful?