-
Notifications
You must be signed in to change notification settings - Fork 910
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
Refactor hierarchical firewall policy variables #1570
Comments
What do you think if we move hfw policies to its own module and we leave only the attachment in the resman modules? |
Hmmmm the factory is pretty convenient to have in the org/folder modules, but I agree that it has very little relationship with resman. I both like splitting fw policies into a separate module, and the convenience/simplicity of the current approach, so whatever you prefer works for me. |
In hindsight, if we leverage the existing net firewall policy to create the policy (and optionally use it for attachment too), and only leave attachments in the resource management modules, that is probably the right way to go. +1 to your approach |
Had a look at the VPC Network Firewall Policy module, and the resource attributes for network policies/rules are a 1:1 match for hirerachical policies/rules. What we could do is integrate hierarchical policies in the same module and backport the factory. Then replace the Attachments should be optionally managed in the module itself via an This is the variable set of the current module I agree with @juliocc that this would result in a much cleaner design. I'm going to draft this unless you all don't like the approach. |
sounds great, go for it! |
This has been completed with the latest merge. |
In the organization/folder modules:
firewall_policies
variable mixes policy and policy rulesfirewall-policies.tf
file are very hard to parseOne example while naming mixes policies and rules
Also check description fields for all resource management modules.
The text was updated successfully, but these errors were encountered: