https://github.com/davidrjonas/ssm-template
Simplified confd that only has ssm as a backend, no config, stdin and out only.
https://github.com/davidrjonas/ssm-template
aws confd configuration-management go parameter-store ssm template
Last synced: about 1 month ago
JSON representation
Simplified confd that only has ssm as a backend, no config, stdin and out only.
- Host: GitHub
- URL: https://github.com/davidrjonas/ssm-template
- Owner: davidrjonas
- License: mit
- Created: 2019-02-22T19:15:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T19:33:55.000Z (over 6 years ago)
- Last Synced: 2025-08-06T10:46:22.516Z (2 months ago)
- Topics: aws, confd, configuration-management, go, parameter-store, ssm, template
- Language: Go
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ssm-template
============A simple template renderer with support for [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html). Based on the venerable [confd](https://github.com/kelseyhightower/confd), dramatically simplified, adding [Masterminds sprig functions](https://github.com/Masterminds/sprig).
Resources
---------- [confd template functions](https://github.com/kelseyhightower/confd/blob/master/docs/templates.md)
- [sprig template functions](http://masterminds.github.io/sprig/)Usage
-----There are no options or configuration. AWS credentials are set in the usual way via `~/.aws/credentials` and environment variables.
Read from STDIN, write to STDOUT, errors to STDERR, exit code set.
```bash
$ cat < my.conf.tpl
Sprig now: {{ now }}
confd getenv: {{ getenv "HOME" }}{{ with get "/config/host" -}}
confd get: {{ .Key }}={{ .Value }}
{{- end }}confd gets:
{{- range gets "/config" }}
- key: {{ .Key }}
value: {{ .Value }}
{{- end }}
EOF$ AWS__REGION=us-west-1 ssm-template < my.conf.tpl | tee my.conf
Sprig now: 2019-02-22 14:32:51.121105 -0800 PST m=+0.039965546
confd getenv: /Users/djonasconfd get: /config/host=127.0.0.1
confd gets:
- key: /config/host
value: 127.0.0.1
- key: /config/port
value: 80
```