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

preview_player
Показать описание
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!

Check out these links to learn more about 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.

#CloudflareWorkers #DeveloperQuickTakes #R2
Рекомендации по теме
Комментарии
Автор

Does this mean the workers are going to be a separate service that will be deployed on cloudflare then i can communicate with the generated url from my backend?, Because initially i tried creating the worker on my nestjs backend and i think i'm missing out on some steps which the docs doesn't cover for

evoteck
Автор

This is really tough since there are too few documents or tutorials about this.

vanchien
Автор

Can I connect these workers and storage with node.js backend? and send requests to get photos from the storage?

critical-games
Автор

How can I access environment variables inside testing file using vitest?

raiyansarker