Skip to content
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

Conversation

fawzihmouda
Copy link
Contributor

@fawzihmouda fawzihmouda commented Apr 9, 2023

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

@ludoo
Copy link
Collaborator

ludoo commented Apr 11, 2023

I don't think there's a way yet to control this via Terraform.

@juliocc
Copy link
Collaborator

juliocc commented Apr 11, 2023

I think version 4.60 of the provider added support for this

@juliocc juliocc reopened this Apr 11, 2023
@fawzihmouda
Copy link
Contributor Author

yes its available in version 4.60, but for some reason the checks are breaking this is why i closed the PR

Copy link
Collaborator

@juliocc juliocc left a 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.

modules/net-vpc/variables.tf Outdated Show resolved Hide resolved
modules/net-vpc/main.tf Outdated Show resolved Hide resolved
@juliocc juliocc enabled auto-merge April 11, 2023 14:04
@juliocc
Copy link
Collaborator

juliocc commented Apr 11, 2023

Thanks for the PR and applying the requested changes @fawzihmouda

@juliocc juliocc merged commit f41362e into GoogleCloudPlatform:master Apr 11, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants