While installing hashicorp/random v3.4.3: could not query provider

I am facing this issue at random while running terraform init. Would appreciate any hint on why its happening so.

Terraform Version


Terraform Configuration Files

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"

provider "aws" {
  region = "us-east-1"

resource "random_shuffle" "subnet_az" {
  input        = <subnet-list>
  result_count = 1

Debug Output

e[0me[1mInitializing the backend...e[0m
e[0me[1mInitializing provider plugins...e[0m
- Finding latest version of hashicorp/aws...
- Finding latest version of hashicorp/null...
- Finding latest version of hashicorp/random...
- Installing hashicorp/null v3.1.1...
- Installed hashicorp/null v3.1.1 (signed by HashiCorp)
- Installing hashicorp/aws v4.30.0...
e[33m│e[0m e[0me[1me[33mWarning: e[0me[0me[1mQuoted keywords are deprecatede[0m
e[33m│e[0m e[0m
e[33m│e[0m e[0me[0m  on main.tf line 84, in resource "null_resource" "notify_slack":
e[33m│e[0m e[0m  84:     when    = e[4m"destroy"e[0me[0m
e[33m│e[0m e[0m
e[33m│e[0m e[0mIn this context, keywords are expected literally rather than in quotes.
e[33m│e[0m e[0mTerraform 0.11 and earlier required quotes, but quoted keywords are now
e[33m│e[0m e[0mdeprecated and will be removed in a future version of Terraform. Remove the
e[33m│e[0m e[0mquotes surrounding this keyword to silence this warning.
e[31m│e[0m e[0me[1me[31mError: e[0me[0me[1mFailed to install providere[0m
e[31m│e[0m e[0m
[31m│[0m [0m[1m[31mError: [0m[0m[1mFailed to install provider[0m
[31m│[0m [0m
[31m│[0m [0m[0mError while installing hashicorp/random v3.4.3: could not query provider
[31m│[0m [0mregistry for registry.terraform.io/hashicorp/random: failed to retrieve
[31m│[0m [0mauthentication checksums for provider: the request failed after 2 attempts,
[31m│[0m [0mplease try again later: Get
[31m│[0m [0m"https://releases.hashicorp.com/terraform-provider-random/3.4.3/terraform-provider-random_3.4.3_SHA256SUMS":
[31m│[0m [0mread tcp <ip>:50710-><ip>:443: read: connection reset by
[31m│[0m [0mpeer
[31m│[0m [0m[1m[31mError: [0m[0m[1mFailed to install provider[0m
[31m│[0m [0m
[31m│[0m [0m[0mError while installing hashicorp/aws v4.30.0: Get
[31m│[0m [0m"https://releases.hashicorp.com/terraform-provider-aws/4.30.0/terraform-provider-aws_4.30.0_linux_amd64.zip":
[31m│[0m [0mread tcp <ip>:43618-><ip>:443: read: connection reset by
[31m│[0m [0mpeer

Expected Behavior

terraform init should have been done successfully

Actual Behavior

Terraform init is erroring out

Steps to Reproduce

terraform init

Additional Context