Skip to content
Injects values from AWS SSM parameters on the values.yaml file
Branch: master
Clone or download
Latest commit 277973b May 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci release 1.0.0 May 10, 2019
cmd add target-dir flag May 20, 2019
internal add target-dir flag May 20, 2019
.gitignore init May 9, 2019
Gopkg.lock init May 9, 2019
Gopkg.toml init May 9, 2019
LICENSE
Makefile release 1.0.0 May 10, 2019
README.md add target-dir flag May 20, 2019
plugin.yaml bump version May 20, 2019

README.md

Helm SSM Plugin

Codacy Badge

This is a plugin to help developers inject values coming from AWS SSM parameters, on the values.yaml file.

Usage

Loads a template file, and writes the output.

Simply add placeholders like {{ssm "path" "option1=value1" }} in your file, where you want it to be replaced by the plugin.

Currently the plugin supports the following options:

  • region=eu-west-1 - to resolve that parameter in a specific region
  • required=false - to mark the parameter as non required. The plugin will replace the placeholder by "".
  • prefix=/something - you can use this to specify a given prefix for a parameter without affecting the path. It will be concatenated with the path before resolving.

Values file

service:
ingress:
  enabled: false
  hosts:
    - service.{{ssm "/exists/subdomain" }}
    - service1.{{ssm "/empty/subdomain" "required=false" }}
    - service2.{{ssm "/exists/subdomain" "required=false" "region=eu-west-1" }}
    - service3.{{ssm "/subdomain" "required=false" "region=eu-west-1" "prefix=/empty" }}

Command

$ helm ssm [flags]

Flags

  -d, --dry-run                 doesn't replace the file content
  -h, --help                    help for ssm
  -t, --target-dir string       dir to output content
  -f, --values valueFilesList   specify values in a YAML file (can specify multiple) (default [])
  -v, --verbose                 show the computed YAML values file/s

Example

asciicast

Install

Choose the latest version from the releases and install the appropriate version for your OS:

Linux

$ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-linux.tgz

MacOS

$ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-macos.tgz

Windows

$ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-windows.tgz

Developer (From Source) Install

If you would like to handle the build yourself, instead of fetching a binary, this is how recommend doing it.

First, set up your environment:

  • You need to have Go installed. Make sure to set $GOPATH

Clone this repo into your $GOPATH. You can use go get -d github.com/codacy/helm-ssm for that.

$ cd $GOPATH/src/github.com/codacy/helm-ssm
$ make install

What is Codacy

Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

Among Codacy’s features

  • Identify new Static Analysis issues
  • Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
  • Auto-comments on Commits and Pull Requests
  • Integrations with Slack, HipChat, Jira, YouTrack
  • Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.

Free for Open Source

Codacy is free for Open Source projects.

License

helm-ssm is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.