You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,13 @@ Then add the plugin to your `netlify.toml` configuration file:
61
61
package = "@netlify/plugin-secrets-manager"
62
62
```
63
63
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
+
64
71
## Additional configuration
65
72
66
73
- By default the plugin injects the secrets with a `NETLIFY_AWS_SECRET_` prefix. You can override the default prefix
0 commit comments