-
Notifications
You must be signed in to change notification settings - Fork 913
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
add firewall enforcement variable to VPC #1312
add firewall enforcement variable to VPC #1312
Conversation
I don't think there's a way yet to control this via Terraform. |
I think version 4.60 of the provider added support for this |
yes its available in version 4.60, but for some reason the checks are breaking this is why i closed the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The provider is currently pinned to version 4.59. Can you update default-versions.tf and then run
find . -name versions.tf -exec cp default-versions.tf {} \;
from the root of the repo to upgrade it? - Please add at least one test to ensure the new variable is working correctly.
- I also left a couple of comments in variables.tf and main.tf. Please take a look.
Thanks for the PR and applying the requested changes @fawzihmouda |
since we can use both net-vpc-firewall-policy and net-vpc-firewall at the same time in a VPC, this PR will add the ability to choose the enforcement order for the Firewalls Policy
Default enforcement order is
AFTER_CLASSIC_FIREWALL
https://cloud.google.com/vpc/docs/firewall-policies-overview#rule-evaluation