Functions: Failed to upload image to S3: FunctionError: Cannot find module 'aws-sdk/clients/s3'

Hi there.

I’m currently trying to rewrite my functions, since 3party services are now deprecated.
I’ve looked at the documentation found here:documentation

When trying to aquire the aws-sdk i’m recieving the aforementioned error in title.

Do i need to import a package or namespace or something?

OK my bad. Apparently you have to add the dependency to the aws-sdk under functions. I don’t think this is very clear, or mabye i’m not to good at reading documentation…
Anyways - here is the link you’ll need if you don’t know how to add the dependencies used in functions:
Link