Add s3 to code render lambdas #316
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trying to return large files from the lambdas is not a good idea for a couple reasons, but chief among them is the API gatway has a 10mb limit. Instead the aim is to instead put the generated 3d file into s3 and return a link to it. We should be able to expire these files quickly.
Besides overcoming the immediate 10mb problem, pushing things to s3 is more compatible for future features where we want to keep for longer, it also gets around some base 64 ecoding issues that I've had with binary media types and the lambdas.
I'm not loving the AWS docs, but this seems like a reasonable example of sending a read file which is pretty much what we want to do.
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/s3-example-creating-buckets.html
Not completely sure how credentials fit in with my current setup with serverless.