Skip to content

Commit

Permalink
Document multi-value secrets (and fix imports in the example)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdalmo committed May 7, 2022
1 parent 50429e0 commit 7ba4490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ For instance:
- `export SECRETSMANAGER=sm://<path>`
- `export PARAMETERSTORE=ssm://<path>`
- `export KMSENCRYPTED=kms://<encrypted-secret>`
- `export MULTIVALUE=sm://<path>#<key>` (if the secret itself contains JSON).

Where `<path>` is the name of the secret in secrets manager or parameter store. `aws-env` will look up secrets in the region specified
in the `AWS_REGION` or `AWS_DEFAULT_REGION` environment variables, and if they are both unset/empty it will contact the EC2 Metadata endpoint
Expand Down Expand Up @@ -50,6 +51,8 @@ Import the library and invoke it prior to parsing flags or reading environment v
package main

import (
"fmt"

"github.com/aws/aws-sdk-go/aws/session"
environment "github.com/telia-oss/aws-env"
)
Expand Down

0 comments on commit 7ba4490

Please sign in to comment.