-
Notifications
You must be signed in to change notification settings - Fork 89
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
Remove validators.Known() on endpoint. #866
Remove validators.Known() on endpoint. #866
Conversation
💚 CLA has been signed |
3426f37
to
6f6c1b8
Compare
@tobio @gigerdo Could you please take a look at this? Maybe this should be fixed in validators.Known()? Thanks! |
Yes, I think you are right. It should be fine to remove the validation, so it works to use variables in the config. cc @dimuon |
@gigerdo I believe the regression test error is unrelated to my change? |
@GeorgeGkinis , looks like it caused by hashicorp/terraform-provider-aws#39676. |
@dimuon Should I make another pull request to implement the workaround in providers.tf or should we wait until it is resolved by Hashicorp? |
@GeorgeGkinis let's proceed with the workaround. Thanks for the contribution! |
c0a6814
to
0454967
Compare
@dimuon Njoy the weekend! |
Thank you @GeorgeGkinis, wishing you a great weekend too! |
@dimuon Is there a known release date with this fix? |
@GeorgeGkinis , there is no specific date for the new release but I suppose we can release the fix soon. |
This removes validators.Known() from the ec.endpoint parameter.
This will allow setting ec.endpoint as a variable and prevents an error "Value must be known" during terraform plan
Description
We want to dynamically change the endpoint URL using variables during CI/CD deployments.
It is currently not possible because during terraform plan ec.endpoint is not filled with the given variable:
local.auto.tfvars:
The endpoint field is also declared as optional in the code and according to documentation has a default value of "https://api.elastic-cloud.com"
Related Issues
#869
Motivation and Context
How Has This Been Tested?
Types of Changes
Readiness Checklist