I am running terragrunt using github action workflow when my work flow is triggered terragrunt init completed successfully but it failed at terragrunt validate with the below error message.please how can i solve this?I have tried to change the version but still wont work
Successfully downloaded Terragrunt v0.35.14
Moving Terragrunt v0.35.14 to PATH
Successfully moved Terragrunt v0.35.14
validate: info: validating Terragrunt configuration in ./applied/Live/Staging/test-dev
validate: error: failed to validate Terragrunt configuration in ./applied/accounts/testing/global
╷
│ Error: registry.terraform.io/hashicorp/aws: there is no package for registry.terraform.io/hashicorp/aws 3.69.0 cached in .terraform/providers
parent terragrunt.hcl
remote_state {
backend = "s3"
config = {
bucket = "bucket-name"
key = "${path_relative_to_include()}/terraform.tfstate"
role_arn = "arn:aws:iam::987364529183:role/Backend_workflow_Role"
region = "us-east-1"
encrypt = true
dynamodb_table = "my-lock-table"
}
}
generate "provider" {
path = "provider.tf"
if_exists = "overwrite_terragrunt"
contents = <<EOF
provider "aws"{
assume_role {
role_arn = "arn:aws:iam::198376456286:role/Deployment_Workflow_role"
region = "us-east-1"
}
}
EOF
}
child terragrunt.hcl
terraform {
source = "../../../..//Staging"
}
include {
path = find_in_parent_folders()
}
main.tf
terraform {
# The configuration for this backend will be filled in by Terragrunt
backend "s3" {}
required_providers {
aws = {
source = "hashicorp/aws"
}
}
required_version = ">= 1.0.0, < 2.0.0"
}