Cloud(AWS/GCP/Azure)
Requirements
To deploy Datasherlock Agent using Docker, you need:
A working installation of Docker desktop.
Datasherlock api token key
Self-hosted deployments also require the following:
Ubuntu 22.04 or later
4GiB memory
2x vCPUs
20GiB storage.
Register Database Metadata in the Cloud
You can register your database's metadata with Datasherlocks. Below is an example configuration for MySQL, Please update the cloud/config.yaml as per your requirment:
type: "mysql"
database:
host: "127.0.0.1"
username: "root"
port: 3306
database: "employees"
ssl: falseTo connect your agent to the Datasherlocks cloud, use the following command. It will provide you with a token and a remote link. Make sure to keep them safe:
sherlock register --config cloud/config.yaml -n <AGENT_NAME>Download or clone the sherlock-on-premise repository.
git clone https://github.com/datasherlocks/sherlock.gitUpdate environment variables
Configure environment variables in cloud/.env:
Set
DB_PASSWORDto your database password.Set
DS_API_KEYto your datasherlock api token.Set
TUNNEL_TOKENto your agent token that you got while register.Set
CLIENT_SECRETto oauth2 app secret if SSO is enable.
Configure deployment
cd cloud && docker-compose upLast updated