-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Failed to marshal plan to json: eror marshaling prior state #38464
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I can reproduce with a new acceptance test case: % ACCTEST_TIMEOUT=1080m make testacc TESTARGS='-run=TestAccElastiCacheReplicationGroup_stateUpgrade5590' PKG=elasticache
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run=TestAccElastiCacheReplicationGroup_stateUpgrade5590 -timeout 1080m
=== RUN TestAccElastiCacheReplicationGroup_stateUpgrade5590
=== PAUSE TestAccElastiCacheReplicationGroup_stateUpgrade5590
=== CONT TestAccElastiCacheReplicationGroup_stateUpgrade5590
replication_group_test.go:657: Step 2/2 error: Error running pre-apply plan: exit status 1
Error: string is required
with aws_elasticache_replication_group.test,
on terraform_plugin_test.tf line 12, in resource "aws_elasticache_replication_group" "test":
12: resource "aws_elasticache_replication_group" "test" {
panic.go:626: Error retrieving state, there may be dangling resources: exit status 1
Failed to marshal state to json: schema version 1 for aws_elasticache_replication_group.test in state does not match version 2 from the provider
--- FAIL: TestAccElastiCacheReplicationGroup_stateUpgrade5590 (540.76s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 545.704s
FAIL
make: *** [testacc] Error 1 Relates #38046. Detailed log:
Relates #38002.
The v4.67.0 schema contained block attribute named |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.60.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.7.5
AWS Provider Version
5.59.0
Affected Resource(s)
Expected Behavior
I upgrade the provider from 4.67.0 to 5.59.0 and see a successful plan.
Actual Behavior
I upgrade the provider from 4.67.0 to 5.59.0 and the plan fails with the following error:
As a second test I upgrade from 4.67.0 to 5.58.0 and the plan is successful!
Relevant Error/Panic Output Snippet
The text was updated successfully, but these errors were encountered: