Code examples on how to generate and use S3 pre-signed URLs using the JavaScript SDK v3.
These examples are being used in the following resources (which are highly recommended to fully appreciate the topic):
- My article on S3 pre-signed URLs: The illustrated guide to S3 pre-signed URLs
- My talk at the AWS Dublin User Group: Everything I know about S3 pre-signed URLs
The examples
folder contains several examples of how to generate S3 pre-signed URLs for some of the most common use cases.
Showcases how to create a pre-signed URL that can be used to give temporary access to a private file stored in an S3 bucket.
Showcases how to create a pre-signed URL that can be used to upload an object into an S3 bucket using the PUT method.
Showcases how to create a pre-signed URL that can be used to upload an object into an S3 bucket using the POST method (using Curl).
Showcases how to create a pre-signed URL that can be used to upload an object into an S3 bucket using the POST method (using a web form).
Showcases how to create a pre-signed URL that can be used to upload an object into an S3 bucket using the POST method (using a web form and client-side JavaScript).
Showcases how to create a pre-signed URL that can be used to list all the buckets in the signer account.
Showcases how to create a pre-signed URL that can be used to list all the objects in a given bucket.
Showcases how to create a pre-signed URL that can be used to delete a given object from a bucket.
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
Licensed under MIT License. © Luciano Mammino.