Skip to content

Commit 2d09ef8

Browse files
authored
fix: add missing doc for context based secrets (#31)
1 parent 641aed5 commit 2d09ef8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ Then add the plugin to your `netlify.toml` configuration file:
6161
package = "@netlify/plugin-secrets-manager"
6262
```
6363

64+
## Context based secrets
65+
66+
The plugin has support for context based secrets, to allow injecting AWS secrets only to builds with a specific deploy context.
67+
To configure the context for a secret, add a secret tag via AWS secrets manager with a name of `NETLIFY_CONTEXT` and value of `production`, `deploy-preview` or `branch-deploy`.
68+
69+
As a result, the plugin will inject the AWS secret only to builds with the matching deploy context.
70+
6471
## Additional configuration
6572

6673
- By default the plugin injects the secrets with a `NETLIFY_AWS_SECRET_` prefix. You can override the default prefix

0 commit comments

Comments
 (0)