https://github.com/subztep/secretsmanager-local
AWS Secrets Manager server mock
https://github.com/subztep/secretsmanager-local
aws mock secrets test-automation
Last synced: about 1 month ago
JSON representation
AWS Secrets Manager server mock
- Host: GitHub
- URL: https://github.com/subztep/secretsmanager-local
- Owner: SubZtep
- License: unlicense
- Created: 2022-06-21T10:12:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-19T21:34:22.000Z (about 3 years ago)
- Last Synced: 2025-05-14T22:42:46.327Z (about 1 year ago)
- Topics: aws, mock, secrets, test-automation
- Language: JavaScript
- Homepage: https://hub.docker.com/r/subztep/secretsmanager-local
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Secrets Manager:tm: — _on localhost_
Minimal AWS Secrets Manager server mock
- HTTP only
- Consentaneous response :trollface:
- Public Docker image
- Zero dependencies
- PR welcome
## Usage
### Client setup
```js
const client = new SecretsManagerClient({
region: "eu-west-1",
endpoint: "http://localhost:7000",
});
```
### Environment variables
| Name | Description | Value | Required |
| ------------- | -------------------------------- | ---------------- | :----------------: |
| SERVER_PORT | Express server port | `7000` | :x: |
| SECRET_NAME | Secret "table" name | `TestName` | :x: |
| SECRET_STRING | Secret value in stringified JSON | `{"test":"abc"}` | :heavy_check_mark: |
### CLI
```sh
# Download image
$ docker pull subztep/secretsmanager-local:0.1.0
# Run container
$ docker container run \
-p 7000:7000 \
--env SECRET_STRING="{\"test\":\"abc\"}" \
subztep/secretsmanager-local:0.1.0
```
---
_wip/tbc_