Skip to content

AWS secret manager

Project structure

docs/examples/aws-sm
├── README.md
├── helmwave.yml
└── values-secret.yaml

1 directory, 3 files

Step 1. Create next secret

aws secretsmanager create-secret --name hello/foobar --secret-string '{"foo":"bar"}'

Step 2. Create helmwave.yml

helmwave.yml
project: "Example: aws secret manager"
version: "0.41.1"

repositories:
  - name: bitnami
    url: https://charts.bitnami.com/bitnami

releases:
  - name: app
    chart: bitnami/nginx
    namespace: test
    values:
      - values-secret.yaml

Step 3. Create values-secret.yaml

values-secret.yaml
{{ defineDatasource "aws" "aws+sm:///hello/foobar" }}

secret: {{ datasource "aws" }}

Step 4. Run helmwave build --templater gomplate

You will get secret: {"foo":"bar"}