Salesforce data reaches Amazon Redshift five ways: AWS Glue zero-ETL, Amazon AppFlow, Salesforce Data 360 (formerly Data Cloud) zero copy data sharing, a pipeline you build on Salesforce’s APIs and COPY, or a managed ELT platform. Glue zero-ETL and AppFlow suit AWS-only teams that want AWS to run the copy, zero copy suits orgs that already license Data 360 and only need to query, and a pipeline you build or manage suits raw CRM objects in your own schema.
Salesforce exposes no database log, so every API-based copy spends the org’s shared daily API allocation and must handle two things a timestamp cursor handles badly: deleted records and formula fields. Estuary is one managed option for this data integration: its Salesforce capture backfills each object, then polls for changes every 5 minutes by default, and its Redshift materialization stages them in S3 and merges them into tables every 30 minutes by default.
Choosing a Salesforce to Redshift method
Approach | Best fit | Freshness | Operational burden | Example implementation |
|---|---|---|---|---|
AWS Glue zero-ETL | AWS-only teams that want an AWS-managed copy and don’t need | Hourly by default; Redshift’s guide gives 1 hour as the minimum | Low to medium: a Glue connection and an IAM role | AWS Glue zero-ETL integration |
Amazon AppFlow | Flows inside AWS, on demand, on a schedule or on a Salesforce change event | Your trigger; scheduled flows run full or incremental | Low to medium: flow configuration | Amazon AppFlow flow |
Data 360 zero copy (not a copy) | Data 360 customers who only read shared objects from Redshift | Live queries over the shared objects | Low once Data 360 is licensed | Data 360 data sharing with Redshift |
Pipeline you build | A handful of objects, or a team already running Airflow | Whatever schedule you write | High: you own cursors, | Bulk API 2.0 and REST extraction, then |
Managed ELT platform | Many objects, or Salesforce data that also goes elsewhere | Poll interval plus the load schedule | Low: you configure rather than code | Estuary |
How Salesforce to Redshift API replication works
A pipeline loads each object once, then repeatedly reads the records whose timestamp moved and merges them by Id.
Initial load: a Bulk API 2.0 query job for each object. Salesforce advises it for more than 2,000 records, and it can’t return compound address or geolocation fields.
Cursor:
SystemModstamp, which advances for user edits and for automated changes such as triggers.LastModifiedDateadvances only for users.Change sweeps: a REST API
queryAllcall over aSystemModstampwindow returns at most 2,000 records a response, and it includes deleted and merged records.Load: each batch goes to S3 as files,
COPYloads them into a staging table, andMERGEwrites them into the object’s table onId.

Salesforce requirements
Every integration and installed managed package in the org draws on the same daily allocation, and Bulk API 2.0 requests are counted too. An Enterprise org with 15 licenses gets 115,000 requests: 100,000 plus 1,000 per license (Professional with API access works the same way). Unlimited and Performance orgs add 5,000 per license instead, and Developer Edition gets 15,000. Bulk query jobs add two caps of their own, 10,000 jobs and 1 TB of results in any rolling 24 hours.
The integration user needs:
API Enabled, granted by a profile or a permission set.
Read access to each object and field-level security on each field, because an API client sees only what its user sees.
View All Data, so that sharing rules don’t hide records.
A sign-in host: if policy rejects
login.salesforce.com, your My Domain host, such asmycompany.my.salesforce.com.
Redshift requirements
Use a provisioned RA3 cluster or a Redshift Serverless workgroup that the pipeline can reach, a dedicated schema, a user that can create tables in it, and an S3 bucket in the same Region for staging. COPY needs permission to read that bucket, and AWS recommends an IAM role attached to the cluster or workgroup over access keys.
Redshift lowercases table and column names, so
Opportunity.StageNamebecomesopportunity.stagename.CASE,GROUP,ORDERandUSERare reserved words, so queries on those objects’ tables need double quotes:"case".VARCHARholds at most 65,535 bytes, while a Salesforce long text area holds up to 131,072 characters.
Setting up Salesforce to Redshift replication
Create the integration user, then read the REST
/limitsresource (DailyApiRequests,DailyBulkV2QueryJobs) to see how much allowance is left.Prepare Redshift: the schema and user above, the staging bucket, and an IAM role for
COPYassociated with the cluster or workgroup.Load each object once. Run a Bulk API 2.0
queryAlljob per object, paging large objects byId, write the CSV to S3, and load it:
Sweep for changes with a window that closes a few minutes before now, load the results into staging as above, then merge on
Id:
Refresh formula columns on their own schedule, and choose the load interval by how stale a report may be.
Validate. Count records on both sides. Then change one record, delete another, add a custom field, and edit a parent record that a formula reads. After one load each change should appear in Redshift, the formula only after its refresh. A day later, check API usage against the allowance.
Let Estuary Handle the Polling and Merging
Estuary polls Salesforce, stages each batch in S3 and merges it into Redshift whenever your sync schedule fires.
What happens after the initial load?
Updates to existing records, whether a user or a trigger made them, overwrite the row with the same
Id.Deletes and merges: in
queryAllresults, deleted records and the losers of merges carryIsDeleted = true, and archivedTaskandEventrecords come back too. Redshift keeps those rows, so views should filterWHERE NOT isdeleted.Userhas noIsDeletedfield.Purged records: once purged, a record is gone from every API. The Recycle Bin holds a deleted record for 15 days, then Salesforce schedules permanent deletion without promising when, and a user may empty it sooner. A purge before the next sweep means you never see the delete until you diff
Idlists.Formula fields are computed at read time. When a formula reads a parent record, editing the parent advances only the parent’s
SystemModstamp, so the child row keeps a stale value. Schedule a refresh for formula columns, or recompute simple formulas with a view.New custom fields show up after the object is described again, if the integration user can see them; rows loaded before then carry
NULLuntil a re-read.
Salesforce to Redshift data type mapping
Salesforce field | Describe type | Redshift target | Notes |
|---|---|---|---|
Record ID, Lookup, Master-Detail |
|
| A lookup holds the parent’s |
Multi-select picklist |
|
| Values joined by semicolons; split them in SQL |
Checkbox |
|
| |
Currency, Percent, Number |
|
| Describe lists |
Date |
|
| A calendar date |
Date/Time |
|
| Salesforce stores it in UTC |
Long text area, rich text |
|
| Longer values are cut or rejected |
Address, Geolocation |
|
| Compound fields can’t go through Bulk queries |
Currency and percent fields arriving as DOUBLE PRECISION
Describe gives currency, percent and number fields the SOAP type xsd:double, so a loader that maps by it creates DOUBLE PRECISION columns. AWS calls that type inexact, with about 15 digits of precision, and says monetary amounts belong in DECIMAL. Describe reports each field’s precision and scale, so create the column as DECIMAL(precision, scale) or cast in a view.
Performance, latency and Redshift cost
Polled Salesforce data in Redshift is minutes old, not seconds: a change can wait one poll interval, any safety lag the pipeline adds, and then one load interval. Polls spend API requests. Each load runs a COPY and a MERGE on your cluster or workgroup, so frequent loads use more of its compute and compete with dashboard queries.
Where the API requests go
The minimum cost of polling is objects × polls per day × requests per poll. Twenty objects polled 288 times a day (every 5 minutes), at one describe call and one query each, make 11,520 requests, about a tenth of the 115,000 an Enterprise org with 15 licenses gets. Wide objects need extra queries, because REST caps the URI and headers at 16,384 bytes, and each further page, Bulk status check and formula re-read adds more.
Check consumption in System Overview, the Sforce-Limit-Info response header or /limits, and spend less by polling only as often as reports need.
Production considerations
Recovery. A pipeline that restarts picks up from its cursor, and the merge absorbs any repeated rows. A purge during a long outage leaves rows behind until you diff
Idlists.Monitoring. Watch API consumption, how old each object’s cursor is, failed Bulk jobs,
COPYfailures inSYS_LOAD_ERROR_DETAIL, and the time since the last load.Security. A read-only Salesforce user per pipeline, and an IAM role or IAM user limited to the staging bucket, never root credentials.
Common problems and troubleshooting
Fields or records missing in Redshift
Call the object’s describe resource as the integration user (GET /services/data/vXX.X/sobjects/Account/describe). If the response lacks a field, field-level security is hiding it; change that under Set Field-Level Security in Object Manager. Too few rows suggests sharing: grant View All Data and reload the object, since the cursor has moved past those records.
Text longer than 65,535 bytes fails or is cut
A plain COPY into a VARCHAR column fails on a longer value (SYS_LOAD_ERROR_DETAIL shows error code 1204, input data outside the range of the type). TRUNCATECOLUMNS cuts the value to fit instead, silently losing text. Glue zero-ETL puts the table in a failed state unless TRUNCATECOLUMNS is on. Check the describe length of your long text area and rich text fields, which hold up to 131,072 characters, against the byte limit, and decide per field: exclude it, accept the cut, or keep that text outside Redshift.
Serializable isolation violation (error 1023) during loads
Two transactions writing to one table at once can make Redshift roll one back with error 1023. Serialize loads per table and retry the failed one; don’t point two loaders at the same staging tables.
Using Estuary for Salesforce to Redshift
Estuary’s Salesforce capture connector feeds its Amazon Redshift materialization: every object becomes a collection keyed on /Id and lands in its own Redshift table.
Freshness: polling, not Change Data Capture events, drives the capture. Its Interval (5 minutes by default) is a poll cadence, not the lag to Redshift; the materialization’s Sync Frequency (30 minutes by default) decides when data lands.
Backfills and API calls: backfills run as Bulk API 2.0 jobs, except for objects with compound address, geolocation or base64 fields (
AccountandUseramong them), which read over REST. Sweeps always use REST, at one describe call plus one query per field chunk for each object.Staging and load: each transaction writes gzipped JSON files and a manifest to your S3 bucket, then runs
COPYinto a temporary table andMERGEinto the target, or a plainCOPYwhen every row is new. Commits lock theflow_checkpoints_v1table in the target schema, so materializations sharing a schema take turns; keep one Redshift materialization per schema.Deletes: the capture emits a delete as an update whose
IsDeletedis true. Hard Delete therefore leaves the row in place, and a record purged from the Recycle Bin before a sweep keepsIsDeletedfalse. Filter views withWHERE NOT isdeleted.Formula fields: a cron on each binding (23:55 UTC daily by default) re-reads them into the stored records. Leave Delta Update off: a delta table gets each refresh as a row that is
NULLexcept for the formula values.Types: standard currency and percent fields, and custom number fields, land as
DOUBLE PRECISION, custom integers asNUMERIC(38,0), and custom checkboxes as text (the capture sends custom fields as strings). The Map collections to tables and keep decimals exact step below shows the fix.Long text: text columns start at
VARCHAR(256)and widen to the 65,535-byte maximum when a longer value arrives. Longer values are cut, not rejected, and no setting keeps more; the collection holds the full text.Credentials: Redshift takes a user and password, and S3 takes an access key pair; the form has no IAM role field. Use an IAM user’s keys, not root’s.
Limits: the capture uses an internal list of standard objects plus custom ones, so external (
__x) and big (__b) objects aren’t discovered.
Implementing Salesforce to Redshift with Estuary
These steps adapt Estuary’s general data flow guide to this route.
Check the prerequisites. The Salesforce and Redshift requirements apply; Estuary also needs:
A read-only Salesforce user, plus an External Client App for Client Credentials.
A Redshift cluster Estuary can reach, either publicly accessible with a security-group rule for Estuary’s IP addresses or behind an SSH tunnel, and an IAM user’s access key pair with read and write access to the staging bucket.
Create the Salesforce capture. In Sources, click New Capture, choose Salesforce, name the capture, and complete the endpoint properties:
Authentication: OAuth through Authenticate your Salesforce account, or Client Credentials with a Consumer Key and Consumer Secret. The form no longer offers the username, password and security token option; captures that use it keep running.
My Domain: your login host, such as
mycompany.my.salesforce.com. Client Credentials requires it.Sandbox: on for a sandbox org.
Start Date: skips records whose cursor timestamp is older.

Select objects. Click Next. Output Collections lists the supported objects with
Account,Contact,Lead,Opportunity,Case,Task,Userand others enabled; add other objects, such asOpportunityLineItemor custom__cones. Each binding has:Interval: the poll interval,
PT5Mby default. There’s no minimum, but a sweep sends no requests for a window shorter than a minute.Formula Field Refresh Schedule: a UTC cron,
55 23 * * *by default. Clear it for objects whose formulas don’t matter.
Click Save and publish. Each enabled object’s backfill begins, and its change sweeps run alongside it.
Create the Redshift materialization. On the capture’s page, click Materialize, choose Amazon Redshift, and complete the endpoint properties:
Address:
host:port, such asmy-cluster.abc123.us-east-2.redshift.amazonaws.com:5439, with User, Password and Database.Database Schema:
salesforce, from the SQL above. It also holdsflow_checkpoints_v1.S3 Staging Bucket, Access Key ID, Secret Access Key, Region and an optional Bucket Path. Saving writes, reads and deletes a test object there, so a wrong bucket or key fails early.
Hard Delete: leave off; it ignores
IsDeletedupdates.Network Tunnel: an SSH tunnel for the Redshift connection; S3 traffic bypasses it.

Set the load schedule. Under Sync Schedule, Sync Frequency is 30 minutes by default and sets how often the
COPYandMERGErun; the binding Interval sets how often Salesforce is polled. A fast-sync window (Timezone, Fast Sync Start Time, Fast Sync Stop Time, Fast Sync Enabled Days) limits short frequencies to business hours, with 4-hour loads outside it. Backfills ignore the schedule. See sync schedules.

Map collections to tables and keep decimals exact. Click Next, pick a naming convention, and leave Delta Update off for each binding under Source Collections; use Table or Alternative Schema to override names. To store currency and percent fields as exact decimals, add a DDL override that matches the field’s describe precision and scale under the binding’s
fields.includein the specification editor before the first publish, such asAmount: { DDL: "DECIMAL(18,2)" }. Custom number fields arrive as text, socastToString: truekeeps their digits exactly in a text column.Publish. Click Save and publish. Estuary creates a table per object and loads the backfill at once.
Check the first loads.
The capture details page reads PRIMARY in its Shard Information card, and a collection’s Data Preview shows records.
The materialization details page shows Data Read rising.
In Redshift, compare
SELECT COUNT(*) FROM salesforce.account WHERE NOT isdeletedwith Salesforce, then run the validation checks.

How Estuary handles formula refreshes, rebuilds and extra destinations
Envoy loads Salesforce and other sources into Redshift with Estuary and reports a “75% reduction in EL data pipeline costs” in its customer story; the story names Estuary’s earlier Real-Time Salesforce capture, not the connector described here.
Formula refreshes as partial documents
On each refresh the capture selects only Id, the cursor and the formula fields, skips objects that have none, and merges the result into the stored record, so every other column is unchanged. A standard-update Redshift table applies that as an ordinary MERGE. A refresh reads every record again through Bulk jobs, and those jobs count against the daily caps.
Rebuilding Redshift, or adding a destination, without calling Salesforce
Each object’s records persist in a collection: JSON files in a cloud storage bucket that you own. A materialization backfill rebuilds the Redshift tables from those files without a Salesforce request. Collections in Estuary’s trial buckets expire after roughly 20 days, so point them at your own bucket for full history. Re-reading Salesforce spends allowance and can’t remove rows for records purged meanwhile, because the capture sends no deletes for incremental objects. The same collections can feed a second destination with no extra Salesforce calls.
When another approach may make more sense
AWS-only, hourly freshness, no history objects: Glue zero-ETL keeps everything inside AWS. AWS lists
User,ContentDocumentLink, change event and share objects, and history objects such asAccountHistoryandOpportunityFieldHistoryas unsupported. Estuary’s capture offers history objects as bindings.AWS-only, a few objects on a schedule you control: By default AppFlow picks REST below 1,000,000 records and Bulk API 2.0 at or above, and Bulk transfers can’t carry compound fields such as addresses. Incremental flows key on a timestamp field you pick, and the first scheduled run pulls 30 days. A change-event trigger needs Change Data Capture enabled in the org.
Data 360 customers who only query: zero copy data sharing mounts Data 360 objects in Redshift as AWS Glue Data Catalog views through Redshift Spectrum and Lake Formation, on RA3 clusters and Redshift Serverless. What you query is Data 360’s own model of the data, rather than raw Sales Cloud or Service Cloud objects you retain. Zero copy data federation runs the other way: Data 360 reading Redshift in place.
Reacting to individual events on a few objects: subscribe to Salesforce Change Data Capture through the Pub/Sub API. An Enterprise org gets 25,000 event deliveries per 24 hours, per subscriber, and you still build a backfill and merge layer.
One migration: export an object to CSV with Data Loader or dataloader.io, upload it to S3 and run the
COPYabove. Every repeat means a new export.
Related resources
Estuary: Salesforce connector with its formula fields and field permissions notes, Amazon Redshift materialization, sync schedules, custom column types, Salesforce to Redshift integration
Salesforce: API request limits, Bulk API 2.0 limits,
queryAll, system fields, custom field types, Change Data Capture allocationsAWS: zero-ETL considerations for application sources, Glue zero-ETL sources and unsupported Salesforce entities, AppFlow flow triggers, zero copy data sharing from Data Cloud to Redshift, zero copy data federation, COPY authorization, reserved words
To try it, follow Estuary’s data flow guide or create a Salesforce capture in the Estuary dashboard. Pricing: estuary.dev/pricing.

















