Hi! I’m trying to configure the Alicloud plugin, and unless I missed something, it looks like a tedious thing to do. It seems like you have to define the accounts you want to cover one by one manually in the YAML file.
So if you have many accounts, you need a script to generate that config file…
Also, I’m a bit confused by the “name” field. It seems like you can put there whatever you want, even if the account name doesn’t really exist, and there are no failures during the execution.
Yes, I think this is indeed a limitation of the current plugin. Feel free to open a GitHub issue (or two) and we can look into potential solutions to reduce the friction there.
As a suggestion, you may be able to automate some of this using the Aliyun CLI, and build the CloudQuery config file this way, but I’m not sure you’ll be able to obtain the credentials this way as well.
Out of interest, how many accounts do you need to sync?
Yep, my idea is to create a Python script that will use the Aliyun CLI to list all accounts and then generate the configuration file automatically, but it’s not the most elegant solution ever I’ll open an issue, thanks!
Regarding the number of accounts, I think around 20-30.
Cool! If you’re happy to share the solution you come up with, even if it’s Python, maybe we can use it as a starting point reference when doing something similar in the plugin itself.