Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umegbewe/mason
Create secrets on AWS Secret Manager via config (more natural and easier)
https://github.com/umegbewe/mason
aws aws-secrets-manager secret-management secret-manager
Last synced: about 5 hours ago
JSON representation
Create secrets on AWS Secret Manager via config (more natural and easier)
- Host: GitHub
- URL: https://github.com/umegbewe/mason
- Owner: umegbewe
- Created: 2023-10-11T00:34:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-14T14:10:26.000Z (about 1 year ago)
- Last Synced: 2024-06-21T08:27:01.675Z (5 months ago)
- Topics: aws, aws-secrets-manager, secret-management, secret-manager
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mason
I have been working with lots of secrets in AWS Secrets Manager the past few days, using the CLI and remembering ``aws`` commands is daunting, the console is worse and feels unnatural
I built ``mason`` to make stuff easier as simple as defining secrets this way
```yaml
secrets:
# create key value secret
/example/postgres/secret:
key_value:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
tags:
environment: local
# create plain text secret
/example/nas/secret-lyric:
plaintext: |
Early on the wakeup
Cunning as the father of the twelve sons of jacob
Shake up the world cake crumbs
tags:
track: fever
# create file secret
/example/file/secret:
file: "example.json"
tags:
file-type: json
```## **Install**
- Download [binaries](https://github.com/umegbewe/mason/releases)
- Go install:
```
go install github.com/umegbewe/mason@latest
```## **Usage**
```text
Usage:mason [OPTIONS]
Options:
-profile: AWS profile to use, default is "default"
-config: Path to where config for secrets is defined, see secrets.yml for example.
-region: The region where the secrets should be created. Default is "us-east-1".'
-kms: KMS key ID or alias to use for encrypting the secrets
```## **License**
This tool is released under the MIT License. See **[LICENSE](https://github.com/umegbewe/mason/blob/main/LICENSE)** for more information.