Configure custom domain to Tigris programmatically

Hi, I’m building a CMS, and I want to generate hundreds of buckets and assign a custom subdomain to to each on them , I was trying to set up the public bucket with the cache controls for each file, and created the CNAME record in my cloudflare account, but this does not work. I had to add manually the new subdomain via tigirs console.

Another way I was thinking to use fly cli, and the assign a domain also via fly cli, but this command only allows me to create one bucket per app.

fly storage create --public 
Error: A Tigris project named damp-tree-1234 already exist

So is not a good solution to me.

Anybody knows if there is an api from tigirs to setup this programatically or maybe via S3 sdk?

Thanks

Hi @miguelangel for this type of use case we have integration APIs that would be a better fit. Check out the docs here: Partner Integration Program | Tigris Object Storage Documentation

It doesn’t currently allow programmatically adding custom domains to buckets. But we can add that pretty quickly.