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

cannot buy new domain with gandi_domain.domain gives 404 #138

Open
dzmitry-lahoda opened this issue Jan 29, 2023 · 5 comments
Open

cannot buy new domain with gandi_domain.domain gives 404 #138

dzmitry-lahoda opened this issue Jan 29, 2023 · 5 comments

Comments

@dzmitry-lahoda
Copy link

Plan: 1 to add, 0 to change, 0 to destroy.
gandi_domain.domain: Creating...
╷
│ Error: StatusCode: 404 ; Err: 404: The resource could not be found. 

terraform-provider-gandi_v2.2.2

{
  "provider": {
    "gandi": {
      "key": "${var.GANDI_KEY}"
    }
  },
  "resource": {
    "gandi_domain": {
      "domain": {
        "admin": {
          "city": "Funchal",
          "country": "PT",
          "email": "dzmitry@lahoda.pro",
          "family_name": "lahoda",
          "given_name": "dzmtiry",
          "phone": "+351 914 069 170",
          "street_addr": "Rua da Estrela, 1",
          "type": "person",
          "zip": "9000-001"
        },
        "autorenew": true,
        "billing": {
          "city": "Funchal",
          "country": "PT",
          "email": "dzmitry@lahoda.pro",
          "family_name": "lahoda",
          "given_name": "dzmtiry",
          "phone": "+351 914 069 170",
          "street_addr": "Rua da Estrela, 1",
          "type": "person",
          "zip": "9000-001"
        },
        "lifecycle": {
          "prevent_destroy": true
        },
        "name": "composablefi.tech",
        "owner": {
          "city": "Funchal",
          "country": "PT",
          "email": "dzmitry@lahoda.pro",
          "family_name": "lahoda",
          "given_name": "dzmtiry",
          "phone": "+351 914 069 170",
          "street_addr": "Rua da Estrela, 1",
          "type": "person",
          "zip": "9000-001"
        },
        "tech": {
          "city": "Funchal",
          "country": "PT",
          "email": "dzmitry@lahoda.pro",
          "family_name": "lahoda",
          "given_name": "dzmtiry",
          "phone": "+351 914 069 170",
          "street_addr": "Rua da Estrela, 1",
          "type": "person",
          "zip": "9000-001"
        }
      }
    }
  },
  "terraform": {
    "required_providers": {
      "gandi": {
        "source": "go-gandi/gandi"
      }
    }
  },
  "variable": {
    "GANDI_KEY": {
      "type": "string"
    },
    "PROJECT": {
      "description": "Google Cloud Project ID",
      "type": "string"
    }
  }
}

@mpereira
Copy link

mpereira commented Feb 9, 2023

I'm also seeing this on version 2.2.3:

resource "gandi_domain" "<REDACTED>" {
  name      = "<REDACTED>"
  autorenew = "true"

  owner {
    email       = "<REDACTED>"
    family_name = "<REDACTED>"
    given_name  = "<REDACTED>"
    type        = "<REDACTED>"
    phone       = "<REDACTED>"
    country     = "<REDACTED>"
    city        = "<REDACTED>"
    zip         = "<REDACTED>"
    street_addr = "<REDACTED>"

    data_obfuscated = true
    mail_obfuscated = true
  }
}

terraform apply

│ Error: StatusCode: 404 ; Err: 404: The resource could not be found. 
│ 
│   with gandi_domain.<REDACTED>,
│   on main.tf line 113, in resource "gandi_domain" "<REDACTED>":
│  113: resource "gandi_domain" "<REDACTED>" {

@dzmitry-lahoda
Copy link
Author

i used cloud provider i host stuff to buy domain.

@nv30
Copy link

nv30 commented Dec 13, 2023

Same here.

@matthiasr
Copy link

I ran into this issue as well, but later noticed that the domain does exist in the console. The Creation Date in WHOIS is ~7 minutes after the apply failed. It seems that the provider needs to wait?

@dzmitry-lahoda
Copy link
Author

yeah, to have parametrized timeout with big defaults. i guess https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts may work to set it, as long as provider correctly implemeted to handle 404 as retry case

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

4 participants