# Terraform init fails after Upgraded to 4.45.0

**URL:** <https://discuss.hashicorp.com/t/terraform-init-fails-after-upgraded-to-4-45-0/47640>\
**Category:** AWS\
**Created:** [December 5, 2022, 8:02pm UTC](https://discuss.hashicorp.com/t/terraform-init-fails-after-upgraded-to-4-45-0/47640 "2022-12-05T20:02:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbush](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rbush/32/29828_2.png) [@rbush](https://discuss.hashicorp.com/u/rbush)\
**Post date:** [December 5, 2022, 8:02pm UTC](https://discuss.hashicorp.com/t/terraform-init-fails-after-upgraded-to-4-45-0/47640/1 "2022-12-05T20:02:39Z")

</div>

I am running a terraform for aws and the init is failing after upgrading the version from 3.64 → 4.45. Is this a supported upgrade?

022-12-05T19:41:26.2026405Z Executable result is Ok

2022-12-05T19:41:26.2027931Z [INFO] Version: 3

2022-12-05T19:41:26.2050203Z [INFO] Attempting to run terraform plan

2022-12-05T19:41:26.2072039Z [command]/vsts/hosted/linux-01-cg01tfbcprd308-01/\_work/\_tool/terraform/1.3.6/x64/terraform plan -target=aws\_kms\_key.rds\_aurora\_staging -target=aws\_kms\_key.rds\_staging -var-file=varfiles/sbx.tfvars -var=source\_database\_password= -var=rds\_password= -no-color -input=false -out=tfplan

2022-12-05T19:41:47.8288697Z

2022-12-05T19:41:47.8290429Z Error: Failed to decode resource from state

2022-12-05T19:41:47.8290716Z

2022-12-05T19:41:47.8291045Z Error decoding

2022-12-05T19:41:47.8291482Z “module.rds\_aurora\_staging.aws\_secretsmanager\_secret\_rotation.secret\_rotation”

2022-12-05T19:41:47.8291980Z from previous state: unsupported attribute “tags”

2022-12-05T19:41:47.8294630Z aws\_kms\_key.rds\_aurora\_staging: Refreshing state… [id=fac0d7a3-d63d-4f9c-a189-3ede33d0478a]

2022-12-05T19:41:47.8295501Z aws\_kms\_key.rds\_staging: Refreshing state… [id=d8da4866-3718-46a0-ac74-bbff3c223bb4]

---

<div class="post-metadata">

**Author:** ![rbush](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rbush/32/29828_2.png) [@rbush](https://discuss.hashicorp.com/u/rbush)\
**Post date:** [December 5, 2022, 8:16pm UTC](https://discuss.hashicorp.com/t/terraform-init-fails-after-upgraded-to-4-45-0/47640/2 "2022-12-05T20:16:59Z")

</div>

This issue can be closed. I cannot verify that the state was valid. This was applied in a sandbox environment, and everything gets wiped every couple of weeks. I will re-open this if it happens in higher up environments.
