Add Cloudflare R2 Account
Add a Cloudflare R2 storage account to PlaidCloud for importing and exporting data files using Cloudflare's zero-egress-fee object storage.
Cloudflare R2 Setup
These steps need to be completed within the Cloudflare dashboard.
- Sign in to the Cloudflare dashboard
- Select your account, then navigate to R2 Object Storage in the left sidebar
- Create a bucket if one does not already exist. Note the bucket name.
- Navigate to R2 Object Storage > Manage R2 API Tokens
- Select Create API Token
- Give the token a name, select the bucket(s) it should have access to, and choose Object Read & Write permissions
- Select Create API Token
- Copy the Access Key ID and Secret Access Key. Save both for the PlaidCloud Document setup below. The secret is only shown once.
- Note the S3 API endpoint for your account. It follows the pattern
https://{account_id}.r2.cloudflarestorage.comand is shown on the R2 overview page.
You should now have everything you need to add your Cloudflare R2 account to PlaidCloud Document.
PlaidCloud Document Setup
- Sign into PlaidCloud
- Select the workspace that the new Document account will reside
- Go to
Document > Manage Accounts - Select the
+ New Accountbutton - Select
Cloudflare R2as the Service Type - Fill in a name and description
- Enter the Start Path as your R2 endpoint followed by the bucket name:
https://{account_id}.r2.cloudflarestorage.com/my-bucket - The Region field can be set to
autoor left blank — R2 automatically selects the closest region - Select an appropriate Security Model for your use case. Leave it
Privateif unsure. - Paste the Access Key ID into the Access Key ID field under Auth Credentials
- Paste the Secret Access Key into the Secret Access Key field under Auth Credentials
- Select the Save button and your new Document account is live