# dbaas cost

![DBaaS Cost](assets/dbaas-cost.png)

## cost-collector.py

Running in aws lambda, daily triggered, to run it, you should setup 3 envs:

- CE_ROLE: the role who have access to the cost information
- QUEUE_NAME: the SQS queue to put cost information into
- SQS_ROLE: the role who have access to SQS specified

## cost.sql

Running in flink, triggered by SQS, notice that to run it you should replace `<password>` field with real password