{"id":13941419,"url":"https://github.com/aws-samples/serverless-s3-uploader","last_synced_at":"2025-07-20T04:31:24.951Z","repository":{"id":137023045,"uuid":"279963295","full_name":"aws-samples/serverless-s3-uploader","owner":"aws-samples","description":"AWS Serverless Application Repo example for serverless uploading to S3. Questions? @jbesw.","archived":false,"fork":false,"pushed_at":"2020-07-15T19:55:04.000Z","size":8,"stargazers_count":35,"open_issues_count":1,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-05T08:20:54.023Z","etag":null,"topics":["aws","lambda","s3","serverless"],"latest_commit_sha":null,"homepage":"https://aws.amazon.com/blogs/compute/author/jbeswick/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-15T19:51:14.000Z","updated_at":"2025-04-10T05:34:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ff6ed3c-02d3-4fff-9b2d-2dacd17b16c8","html_url":"https://github.com/aws-samples/serverless-s3-uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aws-samples/serverless-s3-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fserverless-s3-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fserverless-s3-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fserverless-s3-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fserverless-s3-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-samples","download_url":"https://codeload.github.com/aws-samples/serverless-s3-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fserverless-s3-uploader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067258,"owners_count":23871324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","lambda","s3","serverless"],"created_at":"2024-08-08T02:01:18.564Z","updated_at":"2025-07-20T04:31:24.942Z","avatar_url":"https://github.com/aws-samples.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Serverless S3 Uploader\n\nThe Serverless S3 Uploader allows you to upload JPG files to Amazon S3 buckets from your web applications using pre-signed URLs.\n\nImportant: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS  pricing page](https://aws.amazon.com/pricing/) for details.\n\n```bash\n.\n├── README.MD                   \u003c-- This instructions file\n├── s3UploaderFunction          \u003c-- Source code for the main lambda function\n│   └── app.js                  \u003c-- Main Lambda handler\n│   └── testHarness.js          \u003c-- For testing code locally\n│   └── package.json            \u003c-- NodeJS dependencies and scripts\n├── template.yaml               \u003c-- SAM template\n```\n\nSee this [YouTube video walkthrough](https://www.youtube.com/watch?v=mw_-0iCVpUc\u0026list=PLJo-rJlep0EAY0nMNBv0MZ487l1tOFAjh\u0026index=7) of how uploading to S3 works with presigned URLs.\n\n## Requirements\n\nIf using outside of the AWS Serverless Application Repository:\n\n* AWS CLI already configured with Administrator permission\n* [NodeJS 12.x installed](https://nodejs.org/en/download/)\n\n## Installation Instructions\n\n1. [Create an AWS account](https://portal.aws.amazon.com/gp/aws/developer/registration/index.html) if you do not already have one and login.\n1. Go to the app's page on the [Serverless Application Repository](https://serverlessrepo.aws.amazon.com/applications/) and click \"Deploy\"\n\n## Using this Application\n\n* This application creates an API Gateway endpoint where your application can request a pre-signed URL to upload JPG objects to an S3 bucket. Once the API returns the URL, your application can PUT the object data to this URL to complete the upload.\n* This application is for educational purposes and does not provide any throttling on the API Gateway endpoint. For production usage, you should [apply throttling to your API resources](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html).\n* You can modify this application to upload other types of object.\n\n## How it works\n\n* Deploy this serverless application and take a note of the API endpoint.\n* Invoke the API to receive a pre-signed URL for uploading a JPG file. Use this pre-signed URL to complete the upload.\n* For a live example of this, see [this Fiddle](https://jsfiddle.net/jbeswick/Lq3vkdx2/). View the browser console to see logs of how the Fiddle is interacting with the API Gateway and presigned URL.\n\n==============================================\n\nCopyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nSPDX-License-Identifier: MIT-0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-samples%2Fserverless-s3-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-samples%2Fserverless-s3-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-samples%2Fserverless-s3-uploader/lists"}