Skip to content

AWS secret manager

[Source]

Project structure

├── README.md
├── helmwave.yml
└── vaules-secret.yaml

Step 1. Create next secret

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

Step 2. Create helmwave.yml

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

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

Step 3. Create vaules-secret.yaml

{{ defineDatasource "aws" "aws+sm:///hello/foobar" }}

secret: {{ datasource "aws" }}

Step 4. Run helmwave build --templater gomplate

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