Skip to content

State file not been updated. How so? #1698

Answered by RLRabinowitz
mdaleo404 asked this question in Q&A
Discussion options

You must be logged in to vote

OK I've taken a deeper look. I do see that the behaviour here is different when you compare the local backend and an S3 backend. In the local backend, the state does get updated with the new tofu version. However, in the S3 backend, the state does not change at all

I took a look at the behaviour in Terraform, and seems like backends used to update the version of the binary in the state up until ~1.3.0, when the behaviour has changed to not update the state if there are no changes.

So seems like indeed as you wrote in the original comment here, that an apply isn't actually warranted when there are no changes to the configuration

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mdaleo404
Comment options

@RLRabinowitz
Comment options

Answer selected by mdaleo404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants