sam-goodwin / itty-aws

A teeny tiny ~49KB AWS SDK for TypeScript
104 stars 5 forks source link

Look into https + aws4 #13

Open sam-goodwin opened 1 year ago

sam-goodwin commented 1 year ago

Thanks to @krivachy for the suggestion of https://www.npmjs.com/package/aws4. Also found https://github.com/mhart/aws4fetch which works with Fetch API. I wonder if we can/should support both?

Bundle impact:

I think this approach would work better for browser environments but maybe worse for Lambda since the @aws-sdk/* libraries are included in the Lambda bundle. Still worth testing though, especially since importing @aws-sdk has proven to be slow.