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

You cannot unverify your ownership of this site until your verification token (meta tag, HTML file, Google Analytics tracking code, Google Tag Manager container code, or DNS record) has been removed #33

Open
ravikyada opened this issue Jul 3, 2024 · 0 comments

Comments

@ravikyada
Copy link

Error when destroying google_site_verification_dns resource

Description

I encountered an issue when trying to destroy the google_site_verification_dns resource. The destroy operation hangs and eventually fails with the following error message:

googleapi: Error 400: You cannot unverify your ownership of this site until your verification token (meta tag, HTML file, Google Analytics tracking code, Google Tag Manager container code, or DNS record) has been removed

Here is My .tf file for Domain site verifications:

data "googlesiteverification_dns_token" "run_domain" {
  domain = "domain.com"

  depends_on = [google_project_service.project_development_siteverification]
}

resource "cloudflare_record" "google_search_verification_txt" {
  name    = data.googlesiteverification_dns_token.run_domain.record_name
  proxied = false
  ttl     = 60
  type    = data.googlesiteverification_dns_token.run_domain.record_type
  value   = data.googlesiteverification_dns_token.run_domain.record_value
  zone_id = data.cloudflare_zone.domain.id

  depends_on = [data.googlesiteverification_dns_token.run_domain]
}

resource "googlesiteverification_dns" "run_domain" {
  domain = "domain.com"
  token  = data.googlesiteverification_dns_token.run_domain.record_value

  depends_on = [cloudflare_record.google_search_verification_txt]
}
@ravikyada ravikyada changed the title googleapi: Error 400: You cannot unverify your ownership of this site until your verification token (meta tag, HTML file, Google Analytics tracking code, Google Tag Manager container code, or DNS record) has been removed You cannot unverify your ownership of this site until your verification token (meta tag, HTML file, Google Analytics tracking code, Google Tag Manager container code, or DNS record) has been removed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant