https://github.com/alam0rt/kustomize-aws-ssm-generator
Kustomize generator plugin to pull parameters from SSM and create secrets
https://github.com/alam0rt/kustomize-aws-ssm-generator
aws aws-ssm go kubernetes kustomize
Last synced: 6 months ago
JSON representation
Kustomize generator plugin to pull parameters from SSM and create secrets
- Host: GitHub
- URL: https://github.com/alam0rt/kustomize-aws-ssm-generator
- Owner: alam0rt
- License: apache-2.0
- Created: 2020-01-04T07:37:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T23:30:02.000Z (almost 6 years ago)
- Last Synced: 2024-11-27T12:03:48.929Z (over 1 year ago)
- Topics: aws, aws-ssm, go, kubernetes, kustomize
- Language: Go
- Size: 44.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Parameter Store Generator for Kustomize
Parameter Store Generator is a plugin for Kustomize
It takes a config file like:
```yaml
apiVersion: k8s.samlockart.com/v1
kind: ParameterStore
metadata:
name: example
path: /example/path
version: 1
annotate: true
region: ap-southeast-2
```
and will generate a Secret resource named `example` from the AWS Parameter Store path `/example/path`
#### Fields
*path* is the AWS SSM parameter path, this is fed to ssm:getparametersbypath
*version* is the parameter version you want to retrieve from SSM (optional, if not set, latest parameter will be used.)
*annotate* is a bool, if set to true the `v1/Secret` resource will be annotated with some information about where the parameters were pulled from and what version (if any) are used
*region* is used to set the AWS region for the plugin
#### Installation
Installation is pretty straight forward, it goes:
* Compile or download binary
* Copy the binary to `$XDG_CONFIG_HOME/kustomize/plugin/k8s.samlockart.com/v1/parameterstore/ParameterStore`
* Define a `generator` inside your kustomization and point it to something like [config.yaml](./config.yaml)
* Build with alpha plugin feature enabled: `kustomize build --enable_alpha_plugins`