{"catalogRevision":"cat_f13ab9a494120b5e","recipeId":"page:migrate:cloudflare-r2-bucket:public-media-library","recipeRevision":"r1","canonicalPath":"/migrate/cloudflare-r2-bucket/public-media-library","label":"Migrate Cloudflare R2 bucket: Public media library","family":"Migration guide","summary":"Move object storage from Cloudflare R2 bucket to Ample, one component at a time. Destination verified on Ample: an object written to a published bucket with an immutable Cache-Control header, a mapping row, and the CDN URL serving it publicly. Source procedure: Inventory the bucket with `rclone size` or the R2 dashboard. Not migrated automatically: R2 public buckets with custom domains, Workers bindings and lifecycle rules are not migrated; publish an Ample bucket for public assets instead. Cutover: Switch the app's S3_* environment to the Ample bucket with a redeploy, verify reads and writes, keep R2 read-only until confirmed. Rollback: keep the source untouched until you confirm; nothing at the source is changed or deleted by this guide.","representativeQueries":["Migrate Cloudflare R2 bucket: Public media library","Where can I host Public media library?","I need a component-scoped export/import or reconfiguration procedure for Public media library, with compatibility checks, verification and rollback."],"breadcrumbIds":["discovery","migration","migration:object-and-cdn-sources","migration:cloudflare-r2-bucket","page:migrate:cloudflare-r2-bucket:public-media-library"],"breadcrumbs":[{"id":"discovery","label":"Agent hosting discovery","canonicalPath":"/discover/discovery","kind":"root"},{"id":"migration","label":"Migration sources by component","canonicalPath":"/discover/migration","kind":"facet"},{"id":"migration:object-and-cdn-sources","label":"Object and CDN sources","canonicalPath":"/discover/migration/object-and-cdn-sources","kind":"group"},{"id":"migration:cloudflare-r2-bucket","label":"Cloudflare R2 bucket","canonicalPath":"/discover/migration/cloudflare-r2-bucket","kind":"atom"},{"id":"page:migrate:cloudflare-r2-bucket:public-media-library","label":"Migrate Cloudflare R2 bucket: Public media library","canonicalPath":"/migrate/cloudflare-r2-bucket/public-media-library","kind":"recipe"}],"parentIds":["migration:cloudflare-r2-bucket","pattern:public-media-library","intent:migrate-objects"],"parents":[{"id":"migration:cloudflare-r2-bucket","label":"Cloudflare R2 bucket","canonicalPath":"/discover/migration/cloudflare-r2-bucket","kind":"atom"},{"id":"pattern:public-media-library","label":"Public media library","canonicalPath":"/discover/pattern/public-media-library","kind":"atom"},{"id":"intent:migrate-objects","label":"Migrate objects","canonicalPath":"/discover/intent/migrate-objects","kind":"atom"}],"resourceRequirements":["primitive:s3-compatible-object-storage"],"infrastructureRequirements":[{"primitiveId":"primitive:s3-compatible-object-storage","label":"S3-compatible object storage","canonicalPath":"/discover/primitive/s3-compatible-object-storage","status":"verified","summary":"Buckets are S3-compatible with issued credentials; PutObject and GetObject are verified by canary. Other S3 operations are not verified."}],"workload":"Public media library","migrationSource":"Cloudflare R2 bucket","releaseStatus":"published","supportStatus":"verified","executionStatus":"unbound","docsOnly":true,"prerequisites":["Authorized access to the Cloudflare R2 bucket source and its export tooling","An inventory of every component in scope and out of scope","A validated backup or copy before any cutover","An Ample account token with servers:write, buckets:write"],"testedConfiguration":{"template":"node-22","runtime":"node","size":"s-1vcpu-1gb","install":"npm install","build":"npm run build --if-present","start":"npm run start"},"inputSchema":null,"outputSchema":null,"workflowSteps":[{"title":"Inventory the source","body":"List what Cloudflare R2 bucket provides beyond the component you are moving. Out of scope here: R2 public buckets with custom domains, Workers bindings and lifecycle rules are not migrated; publish an Ample bucket for public assets instead."},{"title":"Source step 1","body":"Inventory the bucket with `rclone size` or the R2 dashboard"},{"title":"Source step 2","body":"Copy objects with `rclone sync` from the R2 S3-compatible endpoint to the Ample bucket endpoint using the issued credentials (path-style)"},{"title":"Source step 3","body":"Verify a sample of objects by size and checksum after the copy"},{"title":"Create the destination bucket and copy","body":"Create the bucket, copy with rclone or the S3 CLI in path-style mode using the issued credentials, then pass the credentials to the app as encrypted S3_* variables.","command":"ample bucket create --name <bucket-name>"},{"title":"Validate before cutover","body":"Run the app's own checks and, for data, compare counts and checksums; the example checks are the pattern self-tests (/p/public-media-library)."},{"title":"Cut over","body":"Switch the app's S3_* environment to the Ample bucket with a redeploy, verify reads and writes, keep R2 read-only until confirmed."},{"title":"Rollback","body":"Point DNS or configuration back to the source. The source was never modified; deletion is a separate, user-executed step after validation."}],"examples":[{"title":"Express pattern fixture (destination)","description":"Verified destination basis: public media library.","sourceRef":"tests/deploy-canaries/express-patterns"}],"successChecks":[{"description":"destination app responds on its public URL","kind":"http_get","path":"/","expect":"ample canary express patterns"},{"description":"public-media-library check from the destination example","kind":"http_get","path":"/p/public-media-library","expect":"see the pattern fixture checks"},{"description":"data or object counts and checksums match the source","kind":"manual","expect":"operator comparison before cutover"}],"limitations":["Documentation only: nothing is executed automatically and no execution binding is offered.","The source-side procedure is documented from Cloudflare R2 bucket's standard tooling and was not executed in this catalog's evidence; the destination side was verified with the pattern fixture.","No full source-product parity is claimed: R2 public buckets with custom domains, Workers bindings and lifecycle rules are not migrated; publish an Ample bucket for public assets instead.","Verified on the node-22 template at s-1vcpu-1gb; region, compliance and request-duration limits are unknown.","PutObject and GetObject with path-style addressing are verified; bulk copy tooling and other S3 operations are not."],"costEstimate":{"currency":"USD","monthlyAmount":5.0,"authoritative":true,"basis":"size prices from pricing.toml (loaded by the API) at build revision a0d0f42a31e6d20eeddb21e44bdbf24055de0ecf","components":[{"name":"app server","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0}],"note":"Destination always-on monthly price of the tested sizes; apps auto-pause when idle. Source costs are unknown to Ample."},"evidenceSummary":[{"kind":"canary_run","summary":"Destination side verified: the Express pattern fixture deployed on Ample (npm install, npm run build --if-present, npm run start on the node-22 template) and its checks passed (an object written to a published bucket with an immutable Cache-Control header, a mapping row, and the CDN URL serving it publicly). The source-side export from Cloudflare R2 bucket is documented from the vendor's standard tooling and was not executed by this catalog's evidence.","observedAt":"2026-09-21T02:34:39Z","implementationRevision":"1d28ae0 (CLI 0.1.21)","expiresAt":"2027-03-20T02:34:39Z","scope":{"checks":["/p/public-media-library"],"destinationOnly":true,"template":"node-22"}}],"lastVerifiedAt":"2026-09-21T02:34:39Z","mcpBinding":null,"unknowns":["region availability is unknown until a verified region fact is recorded","compliance attestations are unknown; none are claimed"],"formats":{"html":"https://ample.computer/migrate/cloudflare-r2-bucket/public-media-library","markdown":"https://ample.computer/migrate/cloudflare-r2-bucket/public-media-library.md","json":"https://api.ample.computer/v1/catalog/recipes/page%3Amigrate%3Acloudflare-r2-bucket%3Apublic-media-library"},"nextActions":[{"actionId":"browse-catalog","label":"Browse the catalog index","operationId":"catalog_index","method":"GET","relativePath":"/v1/catalog","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"search-recipes","label":"Search published recipes by intent, stack and constraints","operationId":"search_recipes","method":"POST","relativePath":"/v1/catalog/search","origin":"api","parameters":{"body":{"limit":5,"query":"Migrate Cloudflare R2 bucket: Public media library"}},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"plan:page:migrate:cloudflare-r2-bucket:public-media-library","label":"Prepare a side-effect-free deployment plan for an authorized project","operationId":"plan_deployment","method":"POST","relativePath":"/v1/catalog/plan","origin":"api","parameters":{"body":{"inputs":{},"projectId":"<workspace or server id you own>","recipeId":"page:migrate:cloudflare-r2-bucket:public-media-library","recipeRevision":"r1"}},"requiresAuthentication":true,"requiresApproval":false},{"actionId":"auth-setup","label":"Read the existing agent authentication setup","operationId":"existing_auth_setup","method":"GET","relativePath":"/mcp/setup","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:migration:cloudflare-r2-bucket","label":"Browse Cloudflare R2 bucket","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/migration%3Acloudflare-r2-bucket","origin":"api","parameters":{"nodeId":"migration:cloudflare-r2-bucket"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:pattern:public-media-library","label":"Browse Public media library","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/pattern%3Apublic-media-library","origin":"api","parameters":{"nodeId":"pattern:public-media-library"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:intent:migrate-objects","label":"Browse Migrate objects","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/intent%3Amigrate-objects","origin":"api","parameters":{"nodeId":"intent:migrate-objects"},"requiresAuthentication":false,"requiresApproval":false}]}