Access R2 Storage from Cloudflare Workers: Step-by-Step Guide

Published: 09 March 2023
on channel: Cloudflare Developers
7,131
74

In this video , we'll show you how to integrate R2 storage into your applications using Cloudflare's Workers API and Wrangler, a command-line tool for building and deploying Cloudflare Workers. With R2's global object storage and zero egress fees, building scalable and efficient applications has never been easier!

Demo Code: https://github.com/lauragift21/worker...

Check out these links to learn more about R2:
https://www.cloudflare.com/products/r2/
https://blog.cloudflare.com/introduci...
https://developers.cloudflare.com/r2/...
https://developers.cloudflare.com/r2/...
https://developers.cloudflare.com/r2/...

Timestamps
0:00 - Intro
0:12 - What is Cloudflare Workers?
0:24 - Access R2 Storage from the dashboard
0:39 - Install Wrangler
1:19 - Create a new worker project
1:48 - Create R2 Bucket with Wrangler
2:04 - Set up R2 Binding
2:25 - Perform CRUD Operations on your bucket
3:57 - Set Authorization Access on Bucket Operations
5:26 - Run locally
6:00 - Create a Secret Key
6:09 - Publish Workers
6:14 - Testing with CURL
6:45 - Outro
----------------------------------------

Deploy serverless code instantly across the globe to give it exceptional performance, reliability, and scale, with Cloudflare Workers.

Cloudflare Workers: https://cfl.re/CloudflareWorkersYT
Cloudflare Workers Docs: https://cfl.re/WorkersDocsYT


#CloudflareWorkers #DeveloperQuickTakes #R2


Watch video Access R2 Storage from Cloudflare Workers: Step-by-Step Guide online without registration, duration hours minute second in high quality. This video was added by user Cloudflare Developers 09 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,13 once and liked it 7 people.