-
Notifications
You must be signed in to change notification settings - Fork 75
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]: Providers wants and fails to update firewall hcloud_server firewall_ids which are managed by labels #911
Comments
I found a workaround for now: But even with that fix it is not possible to set some firewalls via label (like a common one) and some via ids |
Hey @hegerdes, this is not easily possible with the current API, because the list of applied firewalls on the server does not specify if its directly attached or because of a label selector. There are two alternatives:
|
Thanks for the fast reply. It is not a critical error but I still find the use case valid that that one firewall rule is applied to all servers via a label (like If you agree with that I would be happy if you consider this use-case in future interations of the TF plugin or your API. For now I default to |
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs. |
What happened?
I have a module which creates hetzner cloud vms. Users can pass labels, image, vm type and more.
If firewall rules are applied via label, but also via ids, Terraform wants to update and and remove the firewall ids set via label.
What did you expect to happen?
The hcloud providers ignores all firewall ids that are managed by a label and only manages the firewall ids directly set via a list applied to the server property.
Please provide a minimal working example
The text was updated successfully, but these errors were encountered: