-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Description
Getting this issue in GHA when upgrading to latest version. Additionally had to upgrade tf version from 1.1.9 to 1.12.2 + bumping hashicorp/aws provider from ~> 5
to ~> 6
Error: Unexpected Identity Change: During the read operation, the Terraform Provider unexpectedly returned a different identity then the previously stored one.
│
│
│ The attribute "name" is deprecated. Refer to the provider documentation for
│ This is always a problem with the provider and should be reported to the provider developer.
│ details.
│
│ (and 5 more similar warnings elsewhere)
│
╵
│ Current Identity: cty.ObjectVal(map[string]cty.Value{"account_id":cty.NullVal(cty.String), "name":cty.NullVal(cty.String)})
│
│ New Identity: cty.ObjectVal(map[string]cty.Value{"account_id":cty.StringVal("<my-account-number>"), "name":cty.StringVal("<my-role>")})
If your request is for a new feature, please use the Feature request
template.
- ✋ I have searched the open/closed issues and my issue is not listed.
⚠️ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
- Re-initialize the project root to pull down modules:
terraform init
- Re-attempt your terraform plan or apply and check if the issue still persists
Versions
-
Module version [Required]: 5.0
-
Terraform version: 1.12.2
- Provider version(s): hashicorp/aws 6.1.0
Reproduction Code [Required]
Steps to reproduce the behavior:
no
yes
works locally, fails in CI
Expected behavior
standard apply
Actual behavior
Error: Unexpected Identity Change: During the read operation, the Terraform Provider unexpectedly returned a different identity then the previously stored one.
│
│
│ The attribute "name" is deprecated. Refer to the provider documentation for
│ This is always a problem with the provider and should be reported to the provider developer.
│ details.
│
│ (and 5 more similar warnings elsewhere)
│
╵
│ Current Identity: cty.ObjectVal(map[string]cty.Value{"account_id":cty.NullVal(cty.String), "name":cty.NullVal(cty.String)})
│
│ New Identity: cty.ObjectVal(map[string]cty.Value{"account_id":cty.StringVal("<my-account-number>"), "name":cty.StringVal("<my-role>")})
- Went to deploy as normal, it failed saying 1.1.9 was too old
- upgraded to 1.12.2, it failed saying hashicorp/aws 5 was too low
- upgraded hashicorp/aws 5 to 6
- clean apply locally
- fails in GHA with above error
Terminal Output Screenshot(s)
Additional context
Metadata
Metadata
Assignees
Labels
No labels