-
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_composer_environment after initial rollout, forces new resource with no changes #10474
Comments
Do you have the logs here? this looks like a functional change with composer api Please set |
I cannot share the full log at the moment but it's indeed expecting a null but gets back an empty map:
Is this log sufficent? I can setup a test env and share the full log otherwise. Do you also happen to know why this change forces a replacement instead of an update? I currently cannot manage pypi_packages or env_variables from Terraform as any changes done there would trigger a re-provision. |
Try ignoring changes here. Could you make a bug request against the api? I can get around to it otherwise |
I tried to ignore_changes (see iniital message) but somehow it has no effect:
Result:
It still shouldn't replace the whole environment on a change to env_variables or pypi_packages. Is this a Terraform or Google API (which one?) issue? I'm asking because the Terraform module does set both env_variables and pypi_packages to {} on initial rollout. Why does Terraform want to change that to a null on a subsequent run? |
with the google 4.7 provider the ignore changes now works as expected
Haven't tested trying to update the env variables list. |
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
Affected Resource(s)
Terraform Configuration Files
I'm using this module with default values besides
Debug Output
Expected Behavior
Nothing should happen as no changes were done after the initial re-roll, either outside or inside Terraform.
Actual Behavior
If applied Terraform will re-roll the composer environment and will keep doing so on subquent plan / apply as well.
I have tried to ignore changes but that didn't help
Only workaround is to ignore the whole software_config block but that makes it more difficult to replace composer environments on image changes, which are now ignored as well:
Important Factoids
Another related issue is that any changes to
env_variables
orpypi_packages
force a replacement of the composer environment even though it should be possible to push such changes by patching the existing environment.References
The text was updated successfully, but these errors were encountered: