-
Notifications
You must be signed in to change notification settings - Fork 24
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
ionoscloud_dataplatform_cluster does not create the cluster with the correct name #484
Comments
Hi, the DCD output is confusing and seems to have a bug. What happens if you use this for data source? terraform { resource "ionoscloud_dataplatform_cluster" "example" { data "ionoscloud_dataplatform_cluster" "example" { I've provided the entire plan, but please adjust according to your plan/names |
Thanks for your quick answer! The Plan gives me then the ID as return value, what is within the IONOS Portal my cluster name. What I actually would like to get in the end, was the UUID from the Cluster, to use this with the datasource "ionoscloud_k8s_node_pool_nodes" but that is actually not possible because there I get the error that it can not find a cluster with the provided UUID - What makes totally sense, because the returned value is not an UUID. But then the question, how can I get the nodes from the dataplatform Cluster, to then taint them for example? |
Ah, I see. Manually, you can go to DCD and then go to the Kubernetes Manager and there you can see the You can use this datasource and see the dataplatform k8s cluster as a server, but not sure if this is useful: |
Thank you! I am looking forward to your answer on how to get it from terraform :) |
Currently no way from terraform, but I think you can use ionoctl and then set the ids in variables that can used in terraform? We will try to add a way to see this from terraform data source directly. |
Description
I create the IONOS Cloud Dataplatform Cluster with the resource "ionoscloud_dataplatform_cluster" but it does not create the cluster with the correct name within the IONOS Cloud. The Cluster has the ID as name and not the one I configured within the resource.
When I create a managed k8s cluster with the resource "ionoscloud_k8s_cluster" it works as expected and the cluster gets created with the correct name.
This issue does lead to other issues why working with the "ionoscloud_dataplatform_cluster" datasource. Where we have the issue, that we cannot find the data platform cluster by name and neither by ID:
Expected behavior
I expect that the cluster gets created with the name configured within the Terraform resource and that I also can get the cluster via the datasource by the name of the cluster.
Environment
Terraform version:
Provider version:
OS:
How to Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: