Edge Function supporting S3 operation - AWS S3 SDK

So I have an edge function that observes a 'files' table (files table captures metadata information of raw file objects stored). Every time an entry from that table gets deleted, it triggers an Edge Function that will delete an s3 object from a remote s3 endpoint (in my case, IDrive). Therefore, I am using the AWS javascript v3 sdk.

1st image: how I'm creating the client.
2nd image : how I'm creating the DeleteObjectRequest (I checked, the key isn't null)
3rd image : how I am sending it
4th image : the error (formatted)

I believe there was a slightly similar error, but I didn't manage to follow along enough for me to solve my version. This error also appears slightly different, and it was somewhat awhile ago, hopefully there is a solution to this?

After some searching, I think it has to do with trying to access a filing system, but apparently Deno operates in an isolated environment so the concept of a filing system does not apply? However, if there are any solutions or advice, it would be greatly appreciated.
image.png
image.png
image.png
image.png
Was this page helpful?