scaleway / terraform-provider-scaleway

Terraform Scaleway provider
https://www.terraform.io/docs/providers/scaleway/
Mozilla Public License 2.0
199 stars 124 forks source link

Redis data source does not send all informations about the cluster #2760

Open SebUndefined opened 1 month ago

SebUndefined commented 1 month ago

Community Note

Description

When trying to fetch cluster info (Redis), the provider does not send all relevant information about it. Especially on the private network section. Example of output

data "scaleway_redis_cluster" "main_redis_instance" {
  cluster_id = var.main_redis_cluster_id
}

output "redis_instance_debug" {
  value = data.scaleway_redis_cluster.main_redis_instance
}
redis_instance_debug = {
      + acl             = []
      + certificate     = <<-EOT
            -----BEGIN CERTIFICATE-----
            HIDDEN
            -----END CERTIFICATE-----
        EOT
      + cluster_id      = "fr-par-1/THE_ID"
      + cluster_size    = 3
      + created_at      = "2024-09-15T06:35:33Z"
      + id              = "fr-par-1/THE_ID"
      + name            = "THE_NAME"
      + node_type       = "RED1-2XS"
      + password        = ""
      + private_network = [
          + {
              + endpoint_id = "ENDPOINT_ID"
              + id          = "fr-par/ID"
              + service_ips = [
                  + "IP_ONE/20",
                  + "IP_TWO/20",
                  + "IP_THREE/20",
                ]
              + zone        = "fr-par-1"
            },
        ]
      + project_id      = "PROJECT_ID"
      + public_network  = []
      + settings        = {}
      + tags            = [
        ]
      + tls_enabled     = null
      + updated_at      = "2024-09-15T06:38:19Z"
      + user_name       = ""
      + version         = "7.0.5"
      + zone            = "fr-par-1"
    }

From my point of view, the port and the raw IP (without netmask) are missing. The strange things is that the API or CLI return all information about the cluster private network.

New or Affected Resource(s)

Potential Terraform Configuration

terraform {
  cloud {
    organization = "ORG"
    workspaces {
      name = "application"
    }
  }
  required_providers {
    scaleway = {
      source = "scaleway/scaleway"
      version = "2.46.0"
    }
...

  }
  required_version = ">= 0.13"
}
SebUndefined commented 1 month ago

Will this be fixed by #2759 ? If yes, could you please tell me when it will be available ?