I am in the process of upgrading terraform from 0.12.26 to 0.13.2
I have followed the terraform documentation Upgrading to Terraform v0.13 | Terraform by HashiCorp
i am seeing below error.
Error: missing provider provider["registry.terraform.io/hashicorp/aws"].region
This is my backend.tf
provider "aws" {
alias = "region"
region = var.region
}
provider "aws" {
alias = "primary"
region = var.region
}
terraform {
backend "s3" {
encrypt = true
}
required_version = "= 0.13.2"
required_providers {
aws = {
source = "*****/hashicorp/aws"
version = "= 4.13.0"
}
null = {
source = "*****/hashicorp/null"
version = "=3.1.1"
}
template = {
source = "*****/hashicorp/template"
version = "=2.2.0"
}
}
}
data "aws_caller_identity" "current" {
provider = aws.region
}
module "aurora" {
providers = {
aws = aws.region
}
****
****
}