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

Not possible to read custom endpoint alias #778

Open
dangbert opened this issue Feb 6, 2024 · 2 comments
Open

Not possible to read custom endpoint alias #778

dangbert opened this issue Feb 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dangbert
Copy link

dangbert commented Feb 6, 2024

Overview

I'd like to read a more human readable endpoint URL from my terrafom resource, at the moment it seems we can only read ec_deployment.this.elasticsearch.https_endpoint which is the ugly form of the URL.

Possible Implementation

Testing

Context

I'm importing my team's elastic cloud deployment into terraform. We previously passed the endpoint URL via a terraform variable so other terraform resources could read it. Now that I'm using a ec_deployment terraform resource, reading ec_deployment.this.elasticsearch.https_endpoint docs here will result in a non-empty terraform plan (for our other resources that depend on this URL) after my refactor as the endpoint URL is changing. I'd also like the team to be able to see the cleaner endpoint URL in our terraform output.

I could construct the URL myself using the alias and region etc, but it seems janky and I wouldn't trust it to not change long term personally.

Your Environment

Macbook Pro M1, nothing special

@dangbert dangbert added the enhancement New feature or request label Feb 6, 2024
mark-adams added a commit to mark-adams/terraform-provider-ec that referenced this issue Aug 15, 2024
This implements elastic#778 by adding an `aliased_url` parameter to each cluster definition on both the deployment resource and data source.
mark-adams added a commit to mark-adams/terraform-provider-ec that referenced this issue Aug 15, 2024
This implements elastic#778 by adding an `aliased_url` parameter to each cluster definition on both the deployment resource and data source.
@mark-adams
Copy link

I'm also experiencing the same issue. It'd be great to have a read-only aliased_url property on both the resource and the data source.

@GeorgeGkinis
Copy link
Contributor

@mark-adams I also just stumbled upon this.

I also see you committed some changes.
When do you think that a pull request could be created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants