How to Share Amazon S3 Files/Objects with External Users Using Presigned URLs | Python SDK Example
Tiny Technical Tutorials
@tinytechnicaltutorialsAbout
Welcome to Tiny Technical Tutorials, where we do bite-size tech lessons that are clear and to the point. No rambling, no fluff, just practical hands-on tutorials to help you get stuff done.
Video Description
UPDATE! Check out the new Storage Browser for Amazon S3 to make it easier to share files: https://youtu.be/UwnuPgNnmUg By default, files/objects in Amazon/AWS's Simple Storage Service (S3) are blocked from all public access, which means that users without AWS permissions will get an “AccessDenied” error when trying to access them. But sometimes, you DO need to share files with external users, and presigned URLs are the way to do that. In this hands-on tutorial, I’ll walk through how to create an S3 bucket (with all public access blocked) and then upload a file to it. We’ll then see how to generate a presigned URL for the file using the Console (in the browser). And then we’ll see how to programmatically create the presigned URL using the Python SDK (in a Cloud9 IDE environment). Links to videos and documentation referenced: • Learn the basics of S3: https://youtu.be/mDRoyPFJvlU • AWS documentation for presigned URLs: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html • boto3 documentation for using credentials with the boto client: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html 00:00 – Overviewing the need to share S3 files/objects with external users 00:32 – Creating an S3 bucket with no public access 01:31 – Access denied on S3 files 02:10 – Introducing presigned URLs for sharing S3 files 03:20 – Programmatically creating presigned URLs for S3 files using the SDK 04:31 – Implementing Python code to create presigned URLs for S3 files 07:05 – Options for using credentials with the boto3 S3 client 07:38 – Deleting the S3 bucket and Cloud9 environment
Essential Camera Gear Upgrades
AI-recommended products based on this video

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified
![Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)](https://m.media-amazon.com/images/I/71N7xhCJnoL._AC_UL960_FMwebp_QL65_.jpg)
Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

Anker Nano USB C Wall Charger,45W Fast Charging Smart Display Charger,with 180°Foldable Plug,Smart Recognition,Built-in Care Mode,for iPhone17/16/15 (Non-Battery,One USB-C Port,No Cable Included) ClimatePartner certified

SanDisk 64GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXU-064G-GN4IN

SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN




















