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

Support updating a dns_managed_zone #1615

Closed
benjamin-maynard opened this issue Jun 7, 2018 · 3 comments
Closed

Support updating a dns_managed_zone #1615

benjamin-maynard opened this issue Jun 7, 2018 · 3 comments
Labels
enhancement forward/review In review; remove label to forward service/cloud-dns

Comments

@benjamin-maynard
Copy link

Terraform Version

Terraform v0.11.7
+ provider.aws v1.22.0
+ provider.digitalocean v0.1.3
+ provider.dme v0.1.0
+ provider.github v1.1.0
+ provider.google v1.13.0
+ provider.powerdns v0.1.0

Affected Resource(s)

  • google_dns_managed_zone

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

INITIAL:

resource "google_dns_managed_zone" "benmaynard-co-uk" {
  name        = "benmaynard-co-uk"
  dns_name    = "benmaynard.co.uk."
  description = "bnemaynard.co.uk DNS Zone - Managed by Terraform"
}

CHANGED: (Note description change, correcting spelling error)

resource "google_dns_managed_zone" "benmaynard-co-uk" {
  name        = "benmaynard-co-uk"
  dns_name    = "benmaynard.co.uk."
  description = "benmaynard.co.uk DNS Zone - Managed by Terraform"
}

Debug Output

-/+ google_dns_managed_zone.benmaynard-co-uk (new resource required)
      id:                                      "benmaynard-co-uk" => <computed> (forces new resource)
      description:                             "bnemaynard.co.uk DNS Zone - Managed by Terraform" => "benmaynard.co.uk DNS Zone - Managed by Terraform" (forces new resource)
      dns_name:                                "benmaynard.co.uk." => "benmaynard.co.uk."
      name:                                    "benmaynard-co-uk" => "benmaynard-co-uk"
      name_servers.#:                          "4" => <computed>
      project:                                 "maynard-networks" => <computed>

Expected Behavior

Terraform updates the Managed Zone description without recreating the resource.

Actual Behavior

Terraform attempts to recreate the resource.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create Managed Zone with a description
  2. Apply Terraform Configuration
  3. Change Managed Zone Description
  4. Re-apply Terraform

Important Factoids

N/A

References

N/A

@rosbo rosbo changed the title Changing the Managed Zone Description forces a new resource Support updating a dns_managed_zone Jun 7, 2018
@rosbo
Copy link
Contributor

rosbo commented Jun 7, 2018

Hi,

The v1 API for Cloud DNS doesn't support update. However, the new beta API does.

I updated your issue title slightly to reflect this.

Note to future implementer:

@benjamin-maynard benjamin-maynard changed the title Support updating a dns_managed_zone Updating a DNS Managed Zone Description causes a new resource Jun 7, 2018
@benjamin-maynard benjamin-maynard changed the title Updating a DNS Managed Zone Description causes a new resource Support updating a dns_managed_zone Jun 7, 2018
@benjamin-maynard
Copy link
Author

Thanks for the quick response! Look forward to it being implemented.

@ghost
Copy link

ghost commented Nov 18, 2018

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost unassigned rosbo Nov 18, 2018
@ghost ghost locked and limited conversation to collaborators Nov 18, 2018
@github-actions github-actions bot added forward/review In review; remove label to forward service/cloud-dns labels Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement forward/review In review; remove label to forward service/cloud-dns
Projects
None yet
Development

No branches or pull requests

2 participants