Script out storage buckets

I'm trying to create SQL Scripts for setting up storage buckets. I can get the policies from the storage.objects table so that seems good. But do buckets need to be created thru the UI in order to have them provisioned on S3? Or can that be done in SQL Script manner, meaning can I simply insert a row into storage.buckets?
Was this page helpful?