-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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]: aws_backup_plan fails to be decoded from state #39730
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I believe this is because they pulled version 5.71 which had non-backwards compatible changes to the state for aws_backup_plan objects. I think you either need to manually fix your state or wait for 5.72. #39724 and #39694 (comment) for some more context |
@msg555 So something like this until 5.72 is released?
|
Hey @bobbywarner 👋 Thank you for taking the time to raise this! As mentioned above, this is likely caused by |
I removed the |
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. |
Terraform Core Version
1.8.2
AWS Provider Version
5.70.0
Affected Resource(s)
It seems quite coincidental that this PR was merged last week: #33653 🤔
Expected Behavior
Terraform should be able to refresh state for existing
aws_backup_plan
resources without issues given no version changes were done.Actual Behavior
Warning: Failed to decode resource from state
Error decoding
aws_backup_plan.my_backup
from prior state: unsupported attribute "schedule_expression_timezone"Error: Resource instance managed by newer provider version
The current state of
aws_backup_plan.my_backup
was created by a newer provider version than is currently selected. Upgrade the aws provider to work with this state.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
N/A
Steps to Reproduce
Instantiate an
aws_backup_plan
resource and then try to refresh state with it.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: