-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Template to process from remote datasource (such as aws+ssm) #963
Comments
To answer my own question, I just saw that you can pass the template via stdin, so for now the way to accomplish my goal is to run gomplate to pull the template, then pass that to another instance of gomplate. e.g. gomplate...... | gomplate I think this way should work, but am I missing a flag that allows doing this with one instance of gomplate? |
Hi @hongkongkiwi, thanks for logging this! Interestingly, a similar idea came up in Slack today 😉. This is also related to #589. I'm definitely open to doing this, and this recent interest is good motivation to work on it soon 😉 You could also work around this for now by treating the input template as a datasource instead, like this: $ gomplate -d mytemplate=aws+ssm://whatever... -i '{{ include "mytemplate" | tmpl.Inline }}' See https://docs.gomplate.ca/functions/data/#include and https://docs.gomplate.ca/functions/tmpl/#tmpl-inline for the docs on those functions. |
That's a great workaround thank you. |
This issue is stale because it has been open for 60 days with no activity. Remove |
No movement has happened here yet, but it's still valid. Once #1336 is completed, this will automatically be accomplished. |
This issue is stale because it has been open for 60 days with no activity. Remove |
This issue is stale because it has been open for 60 days with no If it's still relevant, one of the following will remove the stale
|
I read the documentation but couldn't quite figure the answer to my question.
What I would like to do is to store the complete template in AWS SSM Parameter Store. Inside the template is the datasources etc. This way I can use the standard gomplate docker and keep the template easily updatable.
The template is then output to an application specific config file.
Is there a way to dynamically grab the template itself? Then process the downloaded template.
The text was updated successfully, but these errors were encountered: