terrafromで以下のようなエラーメッセージが表示されることがある。
│ 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.
とりあえず次のコマンドを試してみろ。
terraform state replace-provider registry.terraform.io/-/aws registry.terraform.io/hashicorp/aws
次のエラーが表示されたらこれを試してみろ。
│ Error: Invalid legacy provider address │ │ This configuration or its associated state refers to the unqualified provider "archive". │ │ You must complete the Terraform 0.13 upgrade process before upgrading to later versions.
terraform state replace-provider registry.terraform.io/-/archive hashicorp/archive