commandline tool for monitoring aws RDS instances
The requirements for using rdsmon
are relatively straight forward, however you will need:
Install the tool - pip install rdsmon
(to install the latest version)
Typically you require an access token for a user that is configured for rds accessibility using
aws IAM
roles. Once your user has been created, you will require an access key
and this
should be either configured on disk, or exposed to the environment running rdsmon
. It is
completely unadvised to user the root
user and the account running the tool should have as
minimal permissions as possible. The IAM
capabilities required by the tool are:
- Todo
Important: Properly configured IAM roles/users should be in place, tokens should be kept secure,
under no circumstances should you share them with anybody. rdsmon
utilises the same mechanisms
by the boto3
aws SDK for credential detection and usage.
To better understand IAM user and policies, please refer to:
Once you have appropriate IAM
roles and have created an access_key
, these should be stored in:
~/.aws/credentials
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
You may also want to add a default region to the aws configuration file, this should be set in:
~/.aws/config
[default]
region=us-east-1
Todo
Ensure you have python3.11+
installed and poetry
:
git clone https://github.com/symonk/rdsmon
cd rdsmon
poetry shell
poetry install
This will create an editable
install, you can point your IDE
to the virtualenv output by poetry shell
and begin contributing.
Linting the code is done via tox -e linting
, additionally pre-commit install
will run the linter before committing automatically.
tox -e py311
will run all tests against python3.11