scaleway/terraform-provider-scaleway

Redis data source does not send all informations about the cluster

SebUndefined opened this issue ยท 1 comments

Community Note

  • Please vote on this issue by adding a ๐Ÿ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

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)

  • scaleway_redis_cluster

Potential Terraform Configuration

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

  }
  required_version = ">= 0.13"
}

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