Skip to content

Conversation

guicrocetti
Copy link

The scylladbcloud_cql_auth data source now exposes the name of the cluster as a read-only attribute.

This allows users to get the cluster name along with the CQL authentication details in a single data source.

@charconstpointer
Copy link
Collaborator

Hi @guicrocetti thank you for your contribution! We will take a look at this PR next week, thank you for your patience.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds the cluster name as a computed/read-only attribute to the CQL auth data source so users can retrieve authentication details and cluster name in one lookup.

  • Adds name field to data source schema and populates it via an added GetCluster API call.
  • Updates example Terraform configuration and documentation to expose and describe the new name attribute.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
internal/provider/cqlauth/cql_auth_data_source.go Adds API call to fetch cluster and sets new name attribute in schema state.
examples/data-sources/scylladbcloud_cql_auth/data-source.tf Adds output exposing the new name attribute.
docs/data-sources/cql_auth.md Documents the new name read-only attribute.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

The `scylladbcloud_cql_auth` data source now exposes the `name` of the
cluster as a read-only attribute.

This allows users to get the cluster name along with the CQL
authentication details in a single data source.

Signed-off-by: Guilherme Crocetti <[email protected]>
@guicrocetti guicrocetti force-pushed the add-cluster-name-to-cql-auth branch from 0d355c6 to 9a83e28 Compare October 6, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants