https://github.com/nullstone-modules/mysql-db-admin
https://github.com/nullstone-modules/mysql-db-admin
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nullstone-modules/mysql-db-admin
- Owner: nullstone-modules
- Created: 2021-08-26T00:57:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-08-19T13:43:37.000Z (10 months ago)
- Last Synced: 2026-01-30T14:56:20.448Z (4 months ago)
- Language: Go
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mysql-db-admin
This is a utility to administer mysql databases that are behind a firewall.
The published docker image runs with a lambda entrypoint.
Using a lambda that is on the same VPC as the database, this utility can ensure a database exists with a specific owner.
This utilizes AWS IAM to secure administration instead of using an SSH Tunnel or VPN.
This also limits the actions that a user can take, making it extremely hard to perform malicious commands.
## AWS Lambda setup
The Lambda requires specific configuration to work properly:
- A SecretsManager Secret containing the connection string as a postgres URL.
- `DB_CONN_URL_SECRET_ID` env var containing ARN of the AWS SecretsManager Secret.
- The execution role must have access to the above secret.
- The executing lambda must have network access to the postgres cluster.