-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
firewall module seems to not function at all #90
Comments
That's weird, let me look into it. |
I just split the thing up into 2 resources, one with a dynamic allow block and one with a dynamic deny block, and everything functioned correctly. It seems as if terraform complains about the conflict between allow and deny before it resolves whether the dynamic nature of the block will actually result in content or not. I can provide a PR, but I screwed up with my other PR and committed it to master in my local repo, so I have to do extra work to make a PR for this fix which doesn't also contain my other fix, so it'll take me a few |
so not quite up to date, but pretty recent. And I do have the latest google provider unless a new one shipped since friday. |
No worries, the actual change is trivial no need for a PR. Let me run some checks tomorrow first, as I've been using it extensively since adding dynamic rules, and never hit this issue. |
I'm upgrading my local terraform now. I'll report back if it fixes the problem |
Hmmm there's something I'm not getting here. I slightly modified a setup I already have to match yours by also adding internal ranges and setting ssh source (which shouldn't make a difference, but whatever):
And I'm not seeing any errors. I'll try deleting and recreating the resources, but I don't suspect anything will change. Terraform version same as yours, google provider version 2.17. |
Recreating the firewall resources from scratch makes no difference, I'm not getting any errors. There's something different with your setup, and looking at your errors it looks like you're using terragrunt and that's what I'd start checking. |
It was my provider version. I was working in a directory that someone else had (incorrectly) fixed the provider to a particular version |
The simplest possible config seems to result in an error:
Always errors out because of conflict between having both allow and deny dynamic blocks when setting up custom_rules, even when there are NO custom_rules.
The text was updated successfully, but these errors were encountered: