-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Need a way to determine whether a datasource is reachable #286
Comments
Hi @xrayrey - thanks for logging this issue! This definitely seems like a bug. I'll take a look. |
Awesome! Thanks! |
6 days later, I'm really not sure why I thought this was a bug 😅... This is actually by design, though I can certainly make things a bit better.
I totally get the value of being able to also make sure the datasource is available, but modifying |
hahaha no problem. That looks good. Do you think we would be able to do something like this?
|
@xrayrey sure, I think the A caveat would be that |
You are right, Thanks! |
Hi All,
Currently if the AWS SSM Parameter doesn't exist or can't be fetched, gomplate will just error out and exit with this message:
Is there a way of making it so
datasourceExists
just returns false? That way we can use conditional statements to detect if there was a problem fetching the parameter and get the value from a different data source.This is what I would like to do:
I want to use the value of the environment variable if it exists. If it doesn't exist I would like to use the value of the data source (in this case AWS SSM Parameter). If that doesn't exist either then I would like to use a default value.
Thanks!
The text was updated successfully, but these errors were encountered: