-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from justindell/feat-add-aws-secrets-manager-…
…adapter documentation for aws secrets manager
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,26 @@ kamal secrets fetch --adapter bitwarden --account [email protected] MyItem/REGIS | |
kamal secrets extract REGISTRY_PASSWORD <SECRETS-FETCH-OUTPUT> | ||
kamal secrets extract MyItem/REGISTRY_PASSWORD <SECRETS-FETCH-OUTPUT> | ||
``` | ||
|
||
## AWS Secrets Manager | ||
|
||
First, install and configure [the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). | ||
|
||
Use the adapter `aws_secrets_manager`: | ||
|
||
```bash | ||
# Fetch passwords | ||
kamal secrets fetch --adapter aws_secrets_manager --account default REGISTRY_PASSWORD DB_PASSWORD | ||
|
||
# Fetch passwords from an item | ||
kamal secrets fetch --adapter aws_secrets_manager --account default --from myapp/ REGISTRY_PASSWORD DB_PASSWORD | ||
|
||
# Fetch passwords from multiple items | ||
kamal secrets fetch --adapter aws_secrets_manager --account default myapp/REGISTRY_PASSWORD myapp/DB_PASSWORD | ||
|
||
# Extract the secret | ||
kamal secrets extract REGISTRY_PASSWORD <SECRETS-FETCH-OUTPUT> | ||
kamal secrets extract MyItem/REGISTRY_PASSWORD <SECRETS-FETCH-OUTPUT> | ||
``` | ||
|
||
**Note:** The `--account` option should be set to your AWS CLI profile name, which is typically `default`. Ensure that your AWS CLI is configured with the necessary permissions to access AWS Secrets Manager. |