# Terraform plan fails after upgrade to 4.45.0

**URL:** <https://discuss.hashicorp.com/t/terraform-plan-fails-after-upgrade-to-4-45-0/47641>\
**Category:** AWS\
**Created:** [December 5, 2022, 8:58pm UTC](https://discuss.hashicorp.com/t/terraform-plan-fails-after-upgrade-to-4-45-0/47641 "2022-12-05T20:58:59Z")\
**Posts on this page:** 1\
**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:58pm UTC](https://discuss.hashicorp.com/t/terraform-plan-fails-after-upgrade-to-4-45-0/47641/1 "2022-12-05T20:58:59Z")

</div>

This terraform plan has started failing in two environments after an upgrade of aws provider from 3.64 → 4.45.0.

2022-12-05T20:53:44.0717394Z [command]/vsts/hosted/linux-01-xxx-01/\_work/\_tool/terraform/1.3.6/x64/terraform version

2022-12-05T20:53:44.1118073Z Terraform v1.3.6

2022-12-05T20:53:44.1118440Z on linux\_amd64

2022-12-05T20:53:44.1118771Z + provider [Terraform Registry](http://registry.terraform.io/hashicorp/archive) v2.2.0

2022-12-05T20:53:44.1119106Z + provider [Terraform Registry](http://registry.terraform.io/hashicorp/aws) v4.45.0

2022-12-05T20:53:44.1119448Z + provider [Terraform Registry](http://registry.terraform.io/hashicorp/null) v3.2.1

2022-12-05T20:53:44.1119801Z + provider [Terraform Registry](http://registry.terraform.io/hashicorp/random) v3.4.3

2022-12-05T20:53:44.1120144Z + provider [Terraform Registry](http://registry.terraform.io/hashicorp/vault) v3.11.0

2022-12-05T20:53:44.1163554Z Executable result is Ok

2022-12-05T20:53:44.1279955Z [INFO] Version: 3

2022-12-05T20:53:44.1282950Z [INFO] Attempting to run terraform plan

2022-12-05T20:53:44.1338095Z [command]/vsts/hosted/linux-01-xxx-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/dev.tfvars -var=source\_database\_password= -var=rds\_password= -no-color -input=false -out=tfplan

2022-12-05T20:54:09.9828661Z

2022-12-05T20:54:09.9840010Z Error: Failed to decode resource from state

2022-12-05T20:54:09.9841182Z aws\_kms\_key.rds\_staging: Refreshing state… [id=c40685ac-ab5e-4150-8206-869afd2493a8]

2022-12-05T20:54:09.9844349Z

2022-12-05T20:54:09.9847706Z Error decoding

2022-12-05T20:54:09.9852554Z “module.rds\_aurora\_staging.aws\_secretsmanager\_secret\_rotation.secret\_rotation”

2022-12-05T20:54:09.9865581Z aws\_kms\_key.rds\_aurora\_staging: Refreshing state… [id=ae0fa9f7-c65e-46c3-a7b1-8aff19fe3ed3]

2022-12-05T20:54:09.9867470Z from previous state: unsupported attribute “tags”
