serverless_static_website_with_basic_auth icon indicating copy to clipboard operation
serverless_static_website_with_basic_auth copied to clipboard

Update AWS provider for terraform >= `v0.13`

Open lantrix opened this issue 3 years ago • 2 comments

Change:

  • terraform 0.13 and onwards requires new providers declaration
  • shared_credentials_file is deprecated

Required commands to upgrade existing state from v0.12 to >= v0.13, tested with v1.2.9:

terraform state replace-provider -- -/random hashicorp/random
terraform state replace-provider -- -/archive hashicorp/archive
terraform state replace-provider -- -/aws hashicorp/aws
terraform init

A terraform version command then shows:

Terraform v1.2.9
on darwin_amd64
+ provider registry.terraform.io/hashicorp/archive v2.2.0
+ provider registry.terraform.io/hashicorp/aws v4.31.0
+ provider registry.terraform.io/hashicorp/random v3.4.3

There are a bunch of other AWS deprecated items, but I'll pop them in another PR after this to keep it cleaner.

lantrix avatar Sep 18 '22 16:09 lantrix

I've successfully redeployed with v1.2.9

lantrix avatar Sep 18 '22 17:09 lantrix

I guess this is no longer being maintained

lantrix avatar Jul 06 '23 04:07 lantrix