WindmillWWindmill
Powered by
ChesongC
Windmill•7mo ago
Chesong

[Typescript BUN]: Listing all objects within S3 Bucket

I am trying to get a list of all ".pngs" within a s3 bucket folder which then feeds the dropdown selector we have on Windmill. Right now it's hardcoded where we have a background runnable and a mapping like this. I have already connected the resource and am able to get region, bucketname, etc using

await wmill.getResource('u/path/brisk_s3_aws_oidc')
await wmill.getResource('u/path/brisk_s3_aws_oidc')

but I am unsure how to get all the images listed under a certain directory
const iconToUrlMapping = {
"image1": "https://cdn.s3.amazonaws.com/images/icons/image1.png",
"image2": "https://cdn.s3.amazonaws.com/images/icons/image2.png",
};
const iconToUrlMapping = {
"image1": "https://cdn.s3.amazonaws.com/images/icons/image1.png",
"image2": "https://cdn.s3.amazonaws.com/images/icons/image2.png",
};


Note: We use the enterprise version of Windmill.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Minio bucket on railway.app and workspace S3 storage
badsequelBbadsequel / help
3y ago
How to build a media pipeline around a S3 bucket and Docker
Mio MotoMMio Moto / help
6mo ago
Bun - not working typescript intellisense on imported npm modules
ReiRRei / help
3y ago
Cursor MPC Error listing offerings
José PeñaJJosé Peña / help
9mo ago