A Github action to load secrets from AWS Secrets Manager into the environment
Add the following step to your workflow:
- name: Configure AWS Secrets Manager
uses: muchobien/configure-aws-secrets-manager@v2
with:
secret-id: mysecret
version-id: someversion # optional
stage: dev # optional
exporters: env,output,file # default, optional
overrides: 'false' # optional, default false (override existing environment variables)
file-path: ./.env # optional, default ./.env
This code is made available under the MIT license.