Hi folks! We have a multi-tenant MySQL instance wh...
# replication-troubleshooting
i
Hi folks! We have a multi-tenant MySQL instance where each database (aka schema) have the same structure and contains data for a certain customer. In Airbyte you can only create a connection to a single database as a source. We have thousands customers though. So is there a way to create sources for all the customers dynamically/programmatically? Appreciate any advice.
✅ 1
b
maybe have a look at the octavia-cli and generate your yaml files for sources and connections programatically?
i
@Bob De Schutter looks handy! But can not really find how to properly describe my sources in the YAML file, could you help with that?
b
Well, you use the command
octavia generate source <definition_id> <source_name>
This generates a yaml file to configure a mysql source
you could use that one as a template and produce multiple of those in a loop
it's just a thought, I haven't done it myself 🙂
i
@Bob De Schutter thanks for your comments!