Five methods cover a HubSpot to Amazon Redshift integration: HubSpot’s own Data Out for Amazon Redshift (beta, Data Hub Enterprise), Amazon AppFlow, an AWS Glue job, a pipeline you build on HubSpot’s APIs with S3 and COPY, or a managed ELT platform. HubSpot’s export suits periodic full snapshots with no extra vendor, AppFlow and Glue suit teams that stay inside AWS, and a built pipeline or managed platform suits incremental merges and history.
HubSpot exposes no database log, so every method reads through an export or the API, and each handles calculated properties and deletes differently. On the Redshift side, a string column stops at 65,535 bytes and a JSON object loaded by COPY at 4 MB. Estuary supports this route with a HubSpot connector that backfills your objects and then polls for changed records, and a Redshift connector that stages changes in S3 and merges them into tables on a schedule you set.
Choosing a HubSpot to Redshift method
Approach | Best fit | Freshness | Operational burden | Example implementation |
|---|---|---|---|---|
HubSpot Data Out for Amazon Redshift (beta) | Data Hub Enterprise accounts that want periodic snapshots and no extra vendor | Scheduled full snapshots; the beta lists options from every 6 hours to monthly | Low: IAM role, S3 bucket, one-time grant | HubSpot’s Amazon Redshift app |
Amazon AppFlow | AWS-only teams moving a few objects | On demand or on a schedule you set | Medium: HubSpot app, OAuth scopes, flow, S3 and IAM roles | An AppFlow flow |
AWS Glue with the HubSpot connector | Teams already running Glue ETL jobs | Your job schedule | Medium: job code and scheduling | A Glue ETL job |
Build your own pipeline | A few objects, or a one-time load | Your schedule | High: cursors, merges, deletes, calculated properties | HubSpot API → S3 → |
Managed ELT platform | Many objects, incremental merges, history or several destinations | Polling interval plus load schedule | Low: configuration | Estuary |
Data Out replaces each table on every run, so the rest of this guide assumes a pipeline that merges changes.
HubSpot Data Out for Amazon Redshift
Two knowledge-base articles, Export HubSpot data to Amazon Redshift and Data Out for Amazon Redshift, document the feature, and both mark it beta. The Data Out article lists Data Hub Enterprise and says a Super Admin must opt the account into the Data Studio beta.
You install the Amazon Redshift app from HubSpot’s Marketplace, then choose the data sources to export (objects, associations and events), a schedule and a Redshift database. HubSpot stages Parquet files in your S3 bucket and loads a full snapshot that replaces the previous tables. It needs an IAM role connected to HubSpot, a cluster or Serverless workgroup HubSpot can reach, a bucket in the same AWS Region and a one-time SQL grant from a Redshift administrator. Syncs are monitored under Data Management, Data Integration, App Syncs.
Because each run replaces the tables, Redshift holds no history and table-level grants you add are not preserved. HubSpot doesn’t delete the staged files, so add an S3 lifecycle rule. Connecting Redshift to Data Studio as an external data source is a different feature that brings Redshift data into HubSpot, the reverse direction.
How HubSpot to Redshift data movement works
Two schedules govern the route, one for reading HubSpot and one for loading Redshift:
Initial copy: a backfill lists every record of each object through the CRM API, with associations alongside.
Changes: later runs search for records modified after a saved cursor, then batch-read them. HubSpot notes that newly updated objects may take a few moments to appear in search results, so successive windows should overlap.
Loading: changed rows go to S3 as files, since
COPYfrom S3 is Redshift’s bulk path.COPYfills a staging table and aMERGEapplies it by record ID. Redshift doesn’t enforce primary keys, so the merge is the only guard against a duplicate ID.
Two kinds of change never show up in that search: archived records, which search excludes, and calculated properties, which change without moving the record’s modified date. Each needs its own pass.

HubSpot requirements
Every API-based method needs a credential that can read each object you sync, and shares HubSpot’s rate limits.
Scopes: read access per object, such as
crm.objects.deals.read, plus the matching schema scope for properties.Marketplace OAuth apps: each account that installs one allows it 110 requests per 10 seconds, with the CRM Search API excluded.
Private apps: 100 requests per 10 seconds on Free and Starter and 190 on Professional and Enterprise, plus a daily allowance of 250,000, 625,000 or 1,000,000 requests shared by every app in the account.
Search: at most 10,000 results per query; paging past it returns a 400 error.
Prune unused custom properties before the first backfill: a record returns every property you request.
Redshift requirements
The data warehouse side needs four things, whichever method loads it.
A target: a provisioned cluster or a Redshift Serverless workgroup the loader can reach, and a database user that can create tables in the target schema.
An S3 bucket in the same Region, which Redshift reads with
COPY. AWS documents IAM roles and access keys as ways to authorize that read.Table design: Redshift treats primary keys as hints, folds identifiers to lowercase, and stores
TEXTasVARCHAR(256). AVARCHARholds at most 65,535 bytes, and a single JSON object loaded withCOPYat most 4 MB.A
SUPERcolumn for thepropertiesobject, so new HubSpot properties need noALTER TABLE.
Setting up HubSpot to Redshift replication
List the objects and HubSpot fields analysts need (
GET /crm/v3/properties/{object}), and drop the ones nobody reads.Create the credential: an OAuth app or private app with read scopes for only those objects.
Create the schema, staging bucket and loader user from the Redshift requirements.
Create the tables:
idasBIGINTwith aNOT NULLconstraint, the two timestamps asTIMESTAMPTZ, andpropertiesasSUPER.Backfill each object to S3 and load it:
Poll for changes from the last cursor, load them into a staging table and merge, then advance the cursor only after the merge commits. Re-read calculated properties on a slower schedule, and list archived records to remove them:
Validate. Compare
SELECT count(*)per table with HubSpot’s record totals. Change a deal amount and confirm the new value after the next run. Archive a test contact, merge two others, and store a note near the 65,535-byte limit to see what your load does with it.
Stop Hand-Building Cursors and Merges
Estuary polls changed HubSpot records for you, stages them in S3 and merges them into Redshift tables on the schedule you set.
What happens after the initial load?
Each run changes rows in place, unless the method replaces whole tables.
Updates overwrite the stored row when the merge matches the record ID; a snapshot method replaces every row on every run.
Calculated properties don’t move the modified date, so their values age until a scheduled re-read, which must update only those columns or it blanks the rest of the row.
Deletes go to HubSpot’s recycle bin, where records can be restored for 90 days. Search excludes archived records, so an incremental poll never sees one; read archived records separately or compare ID lists.
Merges of two records create a new record ID by default, and the absorbed IDs stay in your table.
New properties appear inside
propertiesat once, and a typed column needsALTER TABLE ... ADD COLUMNbefore it can hold them.
HubSpot to Redshift data type mapping
HubSpot property type | Redshift target | Notes |
|---|---|---|
Record ID |
| The merge key; a merge assigns a new ID |
|
| Arrives as text |
|
| HubSpot allows 65,536 characters |
|
| Few distinct values |
|
| One semicolon-separated string |
|
| Arrives as text |
|
| Stored at midnight UTC |
|
| Text timestamp or epoch milliseconds, both UTC |
Associations |
| Or a link table keyed on both IDs |
Long text and the 65,535-byte VARCHAR limit
A multi-line text property can hold 65,536 characters, and Redshift counts bytes, so one long note overflows a VARCHAR. AWS says a longer string raises an error; COPY with TRUNCATECOLUMNS cuts the value to fit instead, silently, in rows of 4 MB or less. Choose deliberately: let the load fail and fix the row, or truncate and accept it.
Amounts and DOUBLE PRECISION
DOUBLE PRECISION stores binary floating point, which can’t represent most decimal amounts exactly, so sums drift. Parse HubSpot’s text amount into NUMERIC(18,2). COPY truncates digits past the column’s scale unless ROUNDEC is set, so check the scale before loading.
Performance, latency and Redshift cost
HubSpot data in Redshift is minutes to hours old, set by the method’s own schedule: Data Out’s beta frequencies start at every 6 hours, and an API pipeline is limited by its read interval plus its load interval.
HubSpot API budget
One search per object per poll, then a batch read per hundred changed records and a further read per associated object type.
A calculated-property re-read pages through every record of the object, so run it daily rather than hourly.
A private-app backfill spends the account’s shared daily allowance; a 429 names the policy it hit, such as
DAILY.
Load interval and Redshift compute
Each load is a COPY and a MERGE on your cluster or workgroup, so a shorter interval means fresher tables and more loads competing with analyst queries.
Production considerations
Retries. Back off on HTTP 429; merging by record ID makes a retried batch harmless.
Source impact. HubSpot asks integrations to keep error responses under 5% of daily requests, so spread backfills across days.
Monitoring. Alert on 429 rate, time since the last successful merge, and failed
COPYrows inSYS_LOAD_ERROR_DETAIL.Security. Read-only HubSpot scopes and a loader user limited to one schema.
Common problems and troubleshooting
COPY fails on a long text property
A load aborts, or a note is cut short without an error. Query SYS_LOAD_ERROR_DETAIL, which covers provisioned clusters and serverless namespaces, for the column, length and error code; 1204 means a value longer than its column. Widen the column to VARCHAR(65535), exclude the property, or accept TRUNCATECOLUMNS.
A row over 4 MB fails the whole load
Error 1216, invalid input line, appears when one JSON object in a staged file exceeds 4 MB. HubSpot records grow that large with property history on or many associations. Turn history off, select fewer fields, or keep large values out of the row.
Rows full of NULLs after a calculated-property refresh
After a refresh, deals carry an ID and a few calculated values and nothing else: the refresh sent partial records and the MERGE replaced whole rows with them. Update only the refreshed columns, then reload the affected table.
Using Estuary for HubSpot to Redshift
For this route, Estuary pairs its HubSpot capture with the Amazon Redshift materialization. Each object the capture binds lands first as a collection, then as a Redshift table whose key is the record ID. Against the concepts above:
Authorization: read-only OAuth; HubSpot’s consent screen can list write permissions because it groups them with read ones. Custom objects arrive as bindings named
custom_<name>.Polling: every CRM object has a quick pass over HubSpot’s recent-changes endpoints and a second pass, on the Search API, that trails an hour behind to pick up anything the first one missed. The Interval is zero on CRM objects, so a poll starts when the last one ends; lengthen it per binding to spend less of the API budget. Estuary’s Marketplace app falls under HubSpot’s 110-requests-per-10-seconds limit, and on a 429 the connector widens the gap between requests, up to 5 minutes.
Loading: each transaction becomes gzipped JSON files in S3, loaded by
COPYfrom a manifest. If a stored row already exists, the rows go to a temporary table and aMERGE; otherwise they load straight in. Tables update every 30 minutes by default.Deletes: the capture can’t see archives or merges on CRM objects, so those rows stay at their last state even with Hard Delete on. Only full-refresh lists, such as owners and deal pipelines, ever delete.
Calculated properties: a re-read at 23:55 UTC daily by default. Standard (merge) bindings fold each partial document into the stored record before writing; a delta-update binding would write it as is, with other properties
NULL.Types:
propertieslands as oneSUPERcolumn and associations asSUPERarrays of record IDs, first page per record, without labels. At Depth 2 each property also gets a column such asproperties/amount. Decimal numbers becomeDOUBLE PRECISION; setcastToStringon amount fields to keep the exact text, and cast it toNUMERICin a view.Strings: string columns start at
VARCHAR(256)and widen once to 65,535 bytes when a longer value arrives. Past that the connector loads withTRUNCATECOLUMNS, so a longer value is cut without an error; the full value stays in the collection.Row size: each staged row holds the selected columns plus the stored document, so a record near 4 MB fails once those are added. Leave Capture Property History off, select fewer fields, or turn on Exclude Flow Document, which stops storing the copy.
Schema changes: with Automatically keep schemas up to date on, discovery adds new custom objects as bindings and new properties widen the schema; schema evolution then adds the Redshift columns as nullable.
Implementing HubSpot to Redshift with Estuary
These steps adapt Estuary’s general data flow guide to this route.
Complete the prerequisites in HubSpot requirements and Redshift requirements. Estuary also needs:
A HubSpot user who can install Marketplace apps, to authorize the OAuth app; the dashboard offers no token option.
An AWS access key ID and secret access key with read and write access to the staging bucket. The form takes keys, not an IAM role.
Network access from Estuary’s IP addresses to the cluster, or an SSH tunnel; S3 staging connects over HTTPS and bypasses the tunnel.
Create the HubSpot capture. On the Sources page, click New Capture, choose Hubspot Real-time (not HubSpot (deprecated)), name it, and fill in the endpoint properties:
Authentication: click the authenticate button and approve the consent screen. Optional scopes such as
ticketsandcrm.objects.custom.readdecide which objects are discovered.Capture Property History: off by default; it adds
propertiesWithHistoryto every record, which raises row size.

Select objects. Click Next. Output Collections lists one binding per object the scopes allow.
Remove objects you don’t need; each spends API calls. Interval is zero on CRM objects; lengthen it per binding.
Calculated Property Refresh Schedule defaults to
55 23 * * *.Keep Automatically keep schemas up to date on.
Click Save and publish. Backfills start, with polling alongside.

Create the Redshift materialization. On the capture’s details page, click Materialize, choose the Amazon Redshift connector, and fill in the endpoint properties:
Address:
host:port, for example a cluster endpoint ending in:5439.User, Password and Database; Database Schema defaults to
publicand also holds theflow_checkpoints_v1table.S3 Staging Bucket, Region, Access Key ID and Secret Access Key; Bucket Path adds an optional prefix.
Hard Delete: affects only HubSpot’s full-refresh lists, such as owners and deal pipelines.

Choose the sync schedule. Under Sync Schedule, Sync Frequency defaults to 30 minutes, with options from
0sto4h; shorter intervals mean fresher tables and more loads. Timezone, Fast Sync Start Time and Fast Sync Stop Time limit frequent loads to working hours; outside them, loads run every 4 hours. Backfills don’t wait for the schedule. See sync schedules.

Shape each table. Click Next, choose a naming convention, and review each binding under Source Collections:
Table and Alternative Schema override the names. Keep one Redshift materialization per schema and add objects as bindings.
Field Depth: Depth 1 keeps properties in one
SUPERcolumn; Depth 2 adds a column per property (field selection). To keep an amount exact, setcastToStringon that field in the binding’s field selection.Delta Update: leave it off for CRM objects, so calculated-property refreshes merge into whole rows.
Exclude Flow Document, under Advanced Options on the endpoint form, drops the stored document column for new bindings.
Publish. Click Save and publish. Estuary creates the tables and loads the backfill without waiting for the schedule.
Verify that data is landing.
The capture details page shows PRIMARY in its Shard Information card; a collection from its Collections list shows records in Data Preview.
The materialization details page charts Data Read.
In Redshift, run
SELECT id, properties.dealname FROM deals LIMIT 10, then the checks in Setting up HubSpot to Redshift replication.

How Estuary handles Redshift rebuilds, calculated properties and extra destinations
The capture writes each HubSpot object once into a collection, a log of JSON documents kept in your own cloud storage bucket or in Estuary’s trial storage. The Redshift materialization reads collections instead of HubSpot, so a rebuild spends no API calls.
Re-creating a Redshift table without polling HubSpot
Situation | Calls HubSpot again? | What to do |
|---|---|---|
Redshift table dropped or damaged | No | Backfill the binding from its collection |
Calculated properties look old | Only the calculated properties | Shorten the refresh schedule on that binding |
Archived or merged-away records still in Redshift | Yes, every object | Reset the dataflow: collections are replaced with a fresh HubSpot read and the destination tables are cleared and refilled |
A rebuild reaches back as far as the collection holds: roughly 20 days on Estuary’s trial storage, full history in a bucket you own. A reset raises each binding’s backfill counter, so Estuary truncates the Redshift table before refilling it, and that is what clears removed records. A reset costs a full HubSpot read.
Redshift and a second destination from one HubSpot read
Adding a second materialization to the same collections lets another destination read the stored history and then each new document, with no extra HubSpot calls.
When another approach may make more sense
Data Hub Enterprise and daily snapshots are enough: use HubSpot’s Data Out. It needs no other vendor and gives up history, merges and the shorter intervals the beta doesn’t list.
AWS-only, a few objects: Amazon AppFlow reads HubSpot objects through an OAuth app you create. Scheduled flows can transfer incrementally, per AWS’s flow trigger docs, but AWS’s Redshift connector page lists insert as the supported action, with no update or upsert. Calculated properties and deletes stay yours.
You already run AWS Glue jobs: the HubSpot connector reads HubSpot in a Glue ETL job that you write, schedule and point at Redshift. HubSpot isn’t on AWS’s zero-ETL source list, so this isn’t zero-ETL.
Related resources
Estuary: HubSpot capture connector, Amazon Redshift materialization, Redshift Batch capture, HubSpot materialization, sync schedules, dataflow resets, HubSpot connector, Redshift destination
HubSpot: Redshift in Data Studio, API usage guidelines, CRM search, restoring deleted records
AWS: Loading data with COPY, MERGE, SUPER type, table constraints, SPLIT_TO_ARRAY, COPY JSON limits, Glue HubSpot connector announcement
To try the route, see the HubSpot to Redshift integration or create a HubSpot capture in the Estuary dashboard. Pricing: estuary.dev/pricing.
















