Extracting Default S3 bucket name from Data Source to use in Actions

Hi,

We 2 self-hosted instances of UI-Bakery deployed (Dev & Prod) with Git enabled in AWS and want to make our code environment agnostic however im struggling when using the S3 Query in the actions library. Instead of hardcoding the bucket name (which is obvs different between environments) i would like to query the data source to obtain the Default S3 bucket name which due to it being setup in the data source which is not source controlled.

Does anyone have any ideas how to do this or another suggestion i could use so that we can deploy our actions to Production without any downstream changes needed?

TIA

Ok after a bit more digging it appears if you leave the bucket blank in the Actions Library it defaults to the Default S3 Bucket in the data source which is good however when using the S3 Uploader component in my app the same functionality does not apply and if i leave it blank it says “S3 bucket is not selected”

Hi @dsmith1983,

Thanks for reporting it!
It seems like there’s no fallback to default bucket implemented on the S3 Uploader component, you’re right.

I created a feature request for the team.

1 Like