civo/terraform-provider-civo

Error creating firewall rules

alejandrojnm opened this issue · 5 comments

 #civo_firewall_rule.teams-kubernetes will be created
  + resource "civo_firewall_rule" "teams-kubernetes" {
      + cidr        = [
          + "192.168.1.1/32",
          + "192.168.10.1/32",
        ]
      + direction   = (known after apply)
      + end_port    = "6443"
      + firewall_id = "d4de2c45-fe88-4b16-bb31-eaff7d57a831"
      + id          = (known after apply)
      + label       = "kubernetes"
      + protocol    = "tcp"
      + region      = (known after apply)
      + start_port  = "6443"
    }
│ Error: [ERR] failed to create a new firewall rule: DatabaseFirewallRuleCreateError: Failed to create a firewall rule in the internal database
│
│   on civo_kubernetes_cluster-teams-zone.tf line 7, in resource "civo_firewall_rule" "teams-kubernetes":
│    7: resource "civo_firewall_rule" "teams-kubernetes" {
│

Found and fixing this in the Go API.

is this fixed ? @andyjeffries ?

I believe so, can it be re-tested please (I can barely remember what I did on Monday, let alone a week ago ;-) )

This is already fixed, was in the API side