Terragrunt init -- Error: Invalid legacy provider address

Error: Invalid legacy provider address

│ This configuration or its associated state refers to the unqualified
│ provider “aws”.

│ You must complete the Terraform 0.13 upgrade process before upgrading to
│ later versions.


│ Error: Invalid legacy provider address

│ This configuration or its associated state refers to the unqualified
│ provider “postgresql”.

│ You must complete the Terraform 0.13 upgrade process before upgrading to
│ later versions.

ERRO[0013] Terraform invocation failed in /Users/Documents/provisioning/production/us-east-2/app/db/.terragrunt-cache/_j95qi2ylcsUiiPxdSUydsp02jA/ObauE5eY8JEikYNx3_r-8edFVmg prefix=[Users/Documents/provisioning/production/us-east-2/app/db]

i have written a code to create a read only user in postgres db . When i ran terragrunt init
it is failing with above error.
my terraform version is
Terraform v1.4.2
on darwin_arm64

Hi @sravya.b,

It seems like the configuration you are trying to work with was most recently applied with Terraform v0.12, and so its state is in an older format that Terraform v1.4.2 cannot read.

I expect the best approach here would be for you to use the latest v0.12 patch release until you are ready to complete the upgrade process to update it to be compatible with modern Terraform. However, I notice that you are using an Apple Silicon system and the Terraform version you need was released long before Apple Silicon was released so you will need to run the “darwin_amd64” build of Terraform under Rosetta 2 emulation unless you have another computer that can run one of the available releases natively, such as perhaps a Linux virtual machine in a cloud platform that offers amd64 (x86_64) virtual machines.