Skip to content
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

Terraform v1.3.0: Import fails with Error writing state file: Failed to serialize resource instance in state: Instance <...> has status ObjectPlanned, which cannot be saved in state. #26962

Closed
gdavison opened this issue Sep 23, 2022 · 3 comments
Labels
upstream-terraform Addresses functionality related to the Terraform core binary.

Comments

@gdavison
Copy link
Contributor

gdavison commented Sep 23, 2022

In Terrafrom v1.3.0, we are seeing an error on terraform import:

Error writing state file: Failed to serialize resource instance in state: Instance <...> has status ObjectPlanned, which cannot be saved in state.

Terraform versions lower than v1.3.0 do not have this error.

See hashicorp/terraform#31851 for details.

@gdavison gdavison added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Sep 23, 2022
@github-actions github-actions bot removed needs-triage Waiting for first response or review from a maintainer. bug Addresses a defect in current functionality. labels Sep 23, 2022
@gdavison gdavison pinned this issue Sep 23, 2022
@hashicorp hashicorp deleted a comment from github-actions bot Sep 23, 2022
@gdavison gdavison changed the title Terraform v1.3.0: Error writing state file: Failed to serialize resource instance in state: Instance <...> has status ObjectPlanned, which cannot be saved in state. Terraform v1.3.0: Import fails with Error writing state file: Failed to serialize resource instance in state: Instance <...> has status ObjectPlanned, which cannot be saved in state. Sep 23, 2022
@pin007
Copy link

pin007 commented Sep 29, 2022

Terraform v1.3.1 fixed that issue for me

@ewbankkit ewbankkit added the upstream-terraform Addresses functionality related to the Terraform core binary. label Oct 13, 2022
@ewbankkit
Copy link
Contributor

Fixed via hashicorp/terraform#31871.

@ewbankkit ewbankkit unpinned this issue Oct 27, 2022
@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-terraform Addresses functionality related to the Terraform core binary.
Projects
None yet
Development

No branches or pull requests

3 participants