Bruno integrates with AWS Secrets Manager to securely fetch secrets for use in your collections. The provider is configured once in Preferences and can then be attached to any collection environment.
Configuration Steps
Go to Preferences settings and navigate to the Secrets Manager section.
Click the + Add Secret Manager button.
Select AWS Secrets Manager as the provider type.
Enter your AWS credentials:
Name - name of your secret manager account e.g: Production Secrets
Auth Method - Manual or AWS CLI
Manual - enter your AWS credentials manually (Access Key ID, Secret Access Key, optional Session Token, and Region)
AWS CLI - use a local AWS CLI profile (Profile Name and Region). See AWS CLI Authentication for the full walkthrough.
Click Test Connection to verify that Bruno can reach your AWS account.
Click Add (or Save) to save the secret manager configuration.
Once saved, the account appears in the Secrets Manager list and is available to select when configuring secrets on an environment.
Exporting as a .env file
Once a provider is saved, you can export its configuration as a .env file directly from Preferences > Secrets Manager. This is useful for passing credentials to the Bruno CLI or seeding a CI/CD pipeline without manually transcribing values.
In the Secrets Manager list, hover over the account you want to export.
Click the Export as .env icon (the square-with-arrow icon on the right).
Bruno writes the credentials to a .env file on your machine.
The exported .env file contains your AWS credentials in plain text. Add it to .gitignore immediately and never commit it to version control.
Pass the exported file to the CLI using the --secrets-env-file flag:
bru run collection/ --env Production --secrets-env-file ./secrets.env