civo / terraform-provider-civo

Terraform Civo provider
https://www.civo.com
Mozilla Public License 2.0
65 stars 51 forks source link

[BUG] Terraform fails to create a new network after multiple attempts: timeout reached #242

Closed albertomr86 closed 1 week ago

albertomr86 commented 1 week ago

Description

Unable to create a network using Terraform. However, it's possible via UI.

terraform {
  required_providers {
    civo = {
      source  = "civo/civo"
    }
  }
}

provider "civo" {
  token  = "<token>"
  region = "NCY1"
}

resource "civo_network" "main" {
  region          = "NCY1"
  label           = "prod"
  cidr_v4         = "172.16.0.0/22"
  nameservers_v4  = ["8.8.8.8", "8.8.4.4", "1.1.1.1"]
}

Screenshots

Screenshot 2024-06-24 at 12 00 49 AM

Additional information

No response

uzaxirr commented 1 week ago

Hey @albertomr86 This is more likely a problem with your tf files rather than a bug in the provider. There seem to be a typo in "NYC1" in your code which is likely to cause the issue. You can refer to the below block NCY1 -> NYC1

resource "civo_network" "main" {
  region          = "NCY1"
  label           = "prod"
  cidr_v4         = "172.16.0.0/22"
  nameservers_v4  = ["8.8.8.8", "8.8.4.4", "1.1.1.1"]
}
albertomr86 commented 1 week ago

Yep. Good catch. Consequences of late-night coding. Thanks, @uzaxirr It's working as expected.