-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_app_engine_flexible_app_version refresh does not update container image #9851
google_app_engine_flexible_app_version refresh does not update container image #9851
Comments
@Deiz help me to understand, on one side, you set |
Ah, to clarify, what I'm expecting is that while Terraform doesn't care about the value of So what I'd expect out of this
My expectation is that the There's actually another hint at the bug here which I just noticed, and it looks like this:
|
@Deiz still try to understand what the issue is but let's discuss below first. Terraform should be able to detect the difference between the state (A or B) and your config (C), and propose & bring the state up to what you ask for (C). This is the expected behavior. Not sure what is wrong in your case.
|
The issue is that Terraform will display a delta like My expectations vs the state:
Also, I think the
In the second example, if TPG were refreshing correctly, it would output a plan to revert |
Given that a refresh to align the state with reality occurs before the changes are listed, I've generally only seen this particular behaviour with this resource - all others will override the state with the real-world status of the resource before attempting to create a change set. |
I'm actively working on this, but want to put a note in here in case someone else picks it up. I'm in the middle of a fix that takes the |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.0.4
Affected Resource(s)
Terraform Configuration Files
Partial snippet:
Expected Behavior
During state refresh, the container image should be pulled from the App Engine API.
We use Terraform to create our App Engine Flexible versions, and then use tooling built on top of the App Engine API to update the container image thereafter. Terraform is responsible for definitions (compute resources, environment variables, etc.), our deployment system is responsible for updating the container image.
To that end, we include
deployment[0].container[0].image
in a lifecycle.ignore_changes block.Actual Behavior
State refresh does not update deployment[0].container[0].image.
Instead, whenever Terraform detects an in-place update is needed, it rolls the service's image back to the value in the state, which in this case is a 5-month old image.
Steps to Reproduce
X = "y"
terraform apply
The text was updated successfully, but these errors were encountered: