Skip to content
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

Add Redis Connection String Attribute to scaleway_redis_cluster Resource #2897

Open
jremy42 opened this issue Feb 4, 2025 · 0 comments
Open
Assignees

Comments

@jremy42
Copy link
Contributor

jremy42 commented Feb 4, 2025

Description:
Currently, the scaleway_redis_cluster resource does not provide a way to obtain the full Redis connection string directly from its attributes. This connection string should consolidate the necessary details—namely, the host, port, and the already provided password—into a single, easy-to-use string.

Proposed Solution:

Create a new attribute (e.g., connection_string) for the scaleway_redis_cluster resource.
Construct the connection string using the format:

redis://:<password>@<host>:<port>/<db_number>

For example, if the password, host, and port are provided as attributes, the output might look like:

redis://:[email protected]:6379/0

Ensure that this change does not introduce any security risks, as the password is already available as an attribute.

@jremy42 jremy42 self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant