-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Terraform] DNS beta private managed_zones #981
[Terraform] DNS beta private managed_zones #981
Conversation
Hey @drebes! Do you mind adding |
311689f
to
f41f430
Compare
Blocked on #1051 to be merged. Currently not compiling with
|
Merged #1051! If you base your changes off master this will work, sorry about the extra round trip. You shouldn't need the custom set func anymore either. It turns out your test exposes a bug in Terraform's diff/state logic (hashicorp/terraform#19658). We're hoping some Terraform |
Wouldn't the custom set func still be necessary to take care of cases where the network has the version number embedded in it? |
Oh! Yup you're right. |
acad1d5
to
5106ab9
Compare
I've added support to outbound forwarding now that it's in public beta. I still need to review if the new acceptance test error is related to the initial test error failing due to hashicorp/terraform#19658. |
3a4f112
to
e864e08
Compare
I am (still) a robot that works on MagicModules PRs! I just wanted to let you know that your changes (as of commit 1343d2c) have been included in your existing downstream PRs. |
I am a robot that works on MagicModules PRs! I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
@drebes: Let me know if my reply in hashicorp/terraform#19658 is satisfying! I'm pretty confident it's an upstream issue and that it should work as we intend. We expect fairly large under the hood changes to the Terraform provider SDK around Let me know if either of you disagree with doing that! I think that getting the code into |
I'll push the update for dnsManagedZonePrivateVisibilityConfigNetworksSchema() and wait for a decision to be made on hashicorp/terraform#19658 wether that's WAI or not. I've tried to replace the
These go beyond the updatable fields and hence are not in the generated code. |
e864e08
to
5b9900c
Compare
I am (still) a robot that works on MagicModules PRs! I just wanted to let you know that your changes (as of commit 20d1fd0) have been included in your existing downstream PRs. |
5b9900c
to
28963e2
Compare
Hey @drebes! If you don't mind rebasing this, all of our existing issues in hashicorp/terraform-provider-google#2753 and there was an update to hashicorp/terraform#19658. |
fc02f5d
to
33f3eef
Compare
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs. Thanks for your contribution! A human will be with you soon. |
I've rebased but the private zone update test is still failing, seems to still be related to hashicorp/terraform#19658. |
Yep! Some related work caused the HashiCorp folks to think it might have been fixed, but it turns out that the issue is still present; hopefully it'll be resolved soon. |
93fd1c5
to
a363812
Compare
I see hashicorp/terraform#19658 has been closed, let me know when I can rebase and retry the tests. |
a363812
to
eb26f13
Compare
Any news on this? This is so important :( |
You can fork the repository, merge in the changes @drebes made, build the custom provider, and place it next to your |
Hey all! Sorry for the delay here. Right now, we're delaying merging this until the underlying issue (hashicorp/terraform#19658) is fixed. That's been closed, which is great news! But the bad news is that it has to be released for us to be able to pick it up, and release this resource. That fix is part of Terraform In the meantime, you're absolutely correct that you could apply the changes locally / fork the provider and apply them etc, and then build from there. There's a known bug that @drebes helped uncover during specific kinds of updates, hashicorp/terraform#19658, and if that's not a problem for you that approach will work. Sorry again for the delay here, and we'll integrate this as soon as it's possible for us to. |
@rileykarson There's no chance of getting this into a provider compatible with terraform 0.11? It would be better if we can work on integrating the major changes of 0.12 separately from any provider-google changes. Is there a stable release branch that private-zone support can be backported to? |
It's worth noting, |
Thanks for at least considering it, @rileykarson. I'm glad to know that it will be released and fixed within terraform 0.11. What exactly is the failure scenario? I was planning to go ahead and use this patch, under void warranty. We have exactly one record in our zone, so perhaps we're in the special case that can't encounter the bug? |
Going from this block to the other causes Terraform to lose track of the unchanged value, and then it begins alternating which value it believes is present in config. If you use a single value or your updates replace all the values entirely, you'll be fine: private_visibility_config {
networks {
network_url = "${google_compute_network.network-1.self_link}"
}
networks {
network_url = "${google_compute_network.network-3.self_link}"
}
} private_visibility_config {
networks {
network_url = "${google_compute_network.network-1.self_link}"
}
networks {
network_url = "${google_compute_network.network-2.self_link}"
}
} |
There is a possible short-term workaround if you're managing a small number of zones: creating the zone with Once we support release the beta provider with private zone support, you should be able to update your code and Terraform will start considering it a public zone. Here's an example (proceed at your own risk):
And once terraform-provider-google-beta is launched with private zone support (this 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.
I talked through this with the rest of the maintainers, and given that we still don't have a timeline for when 0.12
's SDK update will be released, we're comfortable with merging this as-is.
A similar issue is present in an existing resource (hashicorp/terraform-provider-google#1696) and the impact seems to be low; we'll include workaround instructions in the field's documentation.
@drebes: Once the proposed description has been added & the downstreams generated I'll merge them + this upstream PR. This resource will be present in the 2.1.0
release.
I am (still) a robot that works on MagicModules PRs! I just wanted to let you know that your changes (as of commit 9bfc274) have been included in your existing downstream PRs. |
eb26f13
to
771f087
Compare
Tracked submodules are build/terraform-beta build/terraform build/ansible build/inspec.
771f087
to
e8f9084
Compare
[all]
Adds
visibility
,forwardingConfig
andprivateVisibilityConfig
beta fields.[terraform]
[terraform-beta]
Support for private
google_dns_managed_zone
, including outbound forwarding. Fixes hashicorp/terraform-provider-google#870[ansible]
[inspec]