hubspot

redshift

17 min read

Last updated: November 23, 2026

HubSpot to Redshift: How to Connect CRM Data to Amazon Redshift

Learn how to move HubSpot to Redshift using API + S3 + COPY or a managed pipeline. Compare batch vs real-time sync methods, challenges, and best practices.

HubSpot to Redshift integration guide cover showing the HubSpot and Amazon Redshift logos
Share this article
HubSpot to Redshift integration guide cover showing the HubSpot and Amazon Redshift logos
Summarize this page with AI

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 → COPY and MERGE

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 COPY from S3 is Redshift’s bulk path. COPY fills a staging table and a MERGE applies 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 API reads staged in S3, loaded with COPY and merged into a Redshift table.
Redshift doesn't enforce primary keys, so the merge by record ID is the only guard against duplicates.

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 TEXT as VARCHAR(256). A VARCHAR holds at most 65,535 bytes, and a single JSON object loaded with COPY at most 4 MB.

  • A SUPER column for the properties object, so new HubSpot properties need no ALTER TABLE.

CREATE USER hubspot_loader PASSWORD '<password>';
GRANT USAGE, CREATE ON SCHEMA hubspot TO hubspot_loader;
CREATE USER hubspot_loader PASSWORD '<password>';
GRANT USAGE, CREATE ON SCHEMA hubspot TO hubspot_loader;
CREATE USER hubspot_loader PASSWORD '<password>';
GRANT USAGE, CREATE ON SCHEMA hubspot TO hubspot_loader;
CREATE USER hubspot_loader PASSWORD '<password>';
GRANT USAGE, CREATE ON SCHEMA hubspot TO hubspot_loader;
CREATE USER hubspot_loader PASSWORD '<password>';
GRANT USAGE, CREATE ON SCHEMA hubspot TO hubspot_loader;

Setting up HubSpot to Redshift replication

  1. List the objects and HubSpot fields analysts need (GET /crm/v3/properties/{object}), and drop the ones nobody reads.

  2. Create the credential: an OAuth app or private app with read scopes for only those objects.

  3. Create the schema, staging bucket and loader user from the Redshift requirements.

  4. Create the tables: id as BIGINT with a NOT NULL constraint, the two timestamps as TIMESTAMPTZ, and properties as SUPER.

  5. Backfill each object to S3 and load it:

COPY hubspot_deals
FROM 's3://your-bucket/hubspot/deals/2026-11-16/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftCopyRole'
FORMAT AS JSON 'auto'
TIMEFORMAT 'auto'
REGION 'us-east-1';
COPY hubspot_deals
FROM 's3://your-bucket/hubspot/deals/2026-11-16/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftCopyRole'
FORMAT AS JSON 'auto'
TIMEFORMAT 'auto'
REGION 'us-east-1';
COPY hubspot_deals
FROM 's3://your-bucket/hubspot/deals/2026-11-16/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftCopyRole'
FORMAT AS JSON 'auto'
TIMEFORMAT 'auto'
REGION 'us-east-1';
COPY hubspot_deals
FROM 's3://your-bucket/hubspot/deals/2026-11-16/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftCopyRole'
FORMAT AS JSON 'auto'
TIMEFORMAT 'auto'
REGION 'us-east-1';
COPY hubspot_deals
FROM 's3://your-bucket/hubspot/deals/2026-11-16/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftCopyRole'
FORMAT AS JSON 'auto'
TIMEFORMAT 'auto'
REGION 'us-east-1';
  1. 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:

MERGE INTO hubspot_deals
USING hubspot_deals_stage s ON hubspot_deals.id = s.id
WHEN MATCHED THEN UPDATE SET updatedat = s.updatedat, properties = s.properties
WHEN NOT MATCHED THEN INSERT VALUES (s.id, s.createdat, s.updatedat, s.properties);
MERGE INTO hubspot_deals
USING hubspot_deals_stage s ON hubspot_deals.id = s.id
WHEN MATCHED THEN UPDATE SET updatedat = s.updatedat, properties = s.properties
WHEN NOT MATCHED THEN INSERT VALUES (s.id, s.createdat, s.updatedat, s.properties);
MERGE INTO hubspot_deals
USING hubspot_deals_stage s ON hubspot_deals.id = s.id
WHEN MATCHED THEN UPDATE SET updatedat = s.updatedat, properties = s.properties
WHEN NOT MATCHED THEN INSERT VALUES (s.id, s.createdat, s.updatedat, s.properties);
MERGE INTO hubspot_deals
USING hubspot_deals_stage s ON hubspot_deals.id = s.id
WHEN MATCHED THEN UPDATE SET updatedat = s.updatedat, properties = s.properties
WHEN NOT MATCHED THEN INSERT VALUES (s.id, s.createdat, s.updatedat, s.properties);
MERGE INTO hubspot_deals
USING hubspot_deals_stage s ON hubspot_deals.id = s.id
WHEN MATCHED THEN UPDATE SET updatedat = s.updatedat, properties = s.properties
WHEN NOT MATCHED THEN INSERT VALUES (s.id, s.createdat, s.updatedat, s.properties);
  1. 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 properties at once, and a typed column needs ALTER TABLE ... ADD COLUMN before it can hold them.

HubSpot to Redshift data type mapping

HubSpot property type

Redshift target

Notes

Record ID

BIGINT

The merge key; a merge assigns a new ID

number

NUMERIC(18,2) for amounts, else DOUBLE PRECISION

Arrives as text

string (single or multi-line)

VARCHAR(n) up to 65,535 bytes

HubSpot allows 65,536 characters

enumeration, dropdown

VARCHAR(n)

Few distinct values

enumeration, multiple checkboxes

SUPER via SPLIT_TO_ARRAY(value, ';')

One semicolon-separated string

bool

BOOLEAN

Arrives as text

date

DATE

Stored at midnight UTC

datetime

TIMESTAMPTZ

Text timestamp or epoch milliseconds, both UTC

Associations

SUPER array of IDs

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 COPY rows in SYS_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 COPY from a manifest. If a stored row already exists, the rows go to a temporary table and a MERGE; 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: properties lands as one SUPER column and associations as SUPER arrays of record IDs, first page per record, without labels. At Depth 2 each property also gets a column such as properties/amount. Decimal numbers become DOUBLE PRECISION; set castToString on amount fields to keep the exact text, and cast it to NUMERIC in 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 with TRUNCATECOLUMNS, 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.

  1. 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.

  2. 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 tickets and crm.objects.custom.read decide which objects are discovered.

    • Capture Property History: off by default; it adds propertiesWithHistory to every record, which raises row size.

HubSpot capture form before authentication, with Capture Property History unchecked.
  1. 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.

HubSpot capture bindings with deals selected, showing Interval and the refresh schedule.
  1. 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 public and also holds the flow_checkpoints_v1 table.

    • 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.

Amazon Redshift endpoint form with Address, User, Database, S3 staging bucket and Region filled in.
  1. Choose the sync schedule. Under Sync Schedule, Sync Frequency defaults to 30 minutes, with options from 0s to 4h; 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.

Amazon Redshift Sync Schedule section with the Sync Frequency dropdown open.
  1. 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 SUPER column; Depth 2 adds a column per property (field selection). To keep an amount exact, set castToString on 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.

  2. Publish. Click Save and publish. Estuary creates the tables and loads the backfill without waiting for the schedule.

  3. Verify that data is landing.

Amazon Redshift materialization Overview: Connector Status Running and a Data Read chart.

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

To try the route, see the HubSpot to Redshift integration or create a HubSpot capture in the Estuary dashboard. Pricing: estuary.dev/pricing.

FAQs

The one that fits five answers: your HubSpot subscription, how fresh and how many objects, whether you need history and merged updates, whether Redshift is the only destination, and who maintains it. HubSpot's export replaces tables and AppFlow inserts rows, so history or merges point to a pipeline. Estuary fits when many objects feed Redshift and a second destination.

That is a different job. HubSpot's Data Studio can connect Redshift as an external data source, which HubSpot lists under Data Hub Enterprise and refreshes about every five minutes. AppFlow can't help: AWS lists Redshift as a destination only. Estuary has a Redshift Batch capture and a HubSpot materialization that writes collections to CRM objects.

Estuary's HubSpot connector discovers 25 resources, including contacts, companies, deals, tickets, custom objects, owners, workflows and email events. HubSpot's Data Out exports standard and custom objects, associations, selected property history and behavioral events. AppFlow lists Company, Contact, Deal, Ticket and Custom Object among others.

Rate limits, calculated properties and deletes lead the list. HubSpot's Data Out adds its own: sensitive data isn't supported yet, object-specific tables such as OBJECTS_CONTACTS aren't, and each object, event type or association pair can be in only one recurring Redshift sync per account.

START STREAMING YOUR DATA FOR FREE

START STREAMING YOUR DATA FOR FREE

About the author

Seán Whelan is a Solutions Engineer at Estuary, helping customers design, troubleshoot, and run production data pipelines. Seán works across change data capture, database replication, and SaaS integrations, and writes about what actually comes up when real teams move data.

Real-Time & Batch Pipelines.

Real-Time & Batch Pipelines.

Real-Time & Batch Pipelines.

Simple to Deploy.

Simple to Deploy.

Simple to Deploy.

Simply Priced.

Simply Priced.

Simply Priced.

$0.50/GB of data moved + $100/month per connector instance

$0.50/GB of data moved + $100/month per connector instance

$0.50/GB of data moved + $100/month per connector instance

Simple usage-based pricing with volume discounts

Simple usage-based pricing with volume discounts

Simple usage-based pricing with volume discounts

Sub-100ms end-to-end latency for real-time pipelines

Sub-100ms end-to-end latency for real-time pipelines

Sub-100ms end-to-end latency for real-time pipelines

Estuary logo - Real-time data integration platform

Log-based CDC, SaaS, and batch unified in an event-driven ETL architecture.

Don’t miss a thing

Subscribe now to get the latest news and updates.

© 2026 All Rights Reserved -

Estuary

Slack
GitHub
LinkedIn
X