CloudQuery is joining env zero! We're moving from data to decisions.

Read the Announcement ❯

Read the Announcement ❯

Back to source plugin

Sync data from AWS to PostgreSQL

CloudQuery is the simple, fast data integration platform that can fetch your data from AWS APIs and load it into PostgreSQL
AWS
PostgreSQL

Trusted by

https://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/fastly.02omz5p9lvtyr.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/zendesk.027w5kx_8-h6k.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/infosys.0mmlgzf5~t~wp.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/auroralabs.00r3kh6y35n6q.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/palo_alto_networks.0ygzqa30pwx-3.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/instructure.03q82u-s_.07x.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/ridgeline.0jor28_0sc-i6.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/fastly.02omz5p9lvtyr.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/zendesk.027w5kx_8-h6k.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/infosys.0mmlgzf5~t~wp.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/auroralabs.00r3kh6y35n6q.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/palo_alto_networks.0ygzqa30pwx-3.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/instructure.03q82u-s_.07x.svghttps://cdn.cloudquery.io/hub/a5sr3vgei/_next/static/media/ridgeline.0jor28_0sc-i6.svg
Enterprise ReadyCustomize & ExtendEnterprise Ready
Enterprise Ready
Customize & Extend
Query Assets with SQL

Non-invasive account access for better security and efficiency.

Import data with CloudQuery SDKs and build your own plugins.

Query cloud assets and security with a simple SQL-based UI.

Step by step guide for how to export data from AWS to PostgreSQL

MacOS Setup

Step 1: Install CloudQuery

To install CloudQuery, run the following command in your terminal:

brew install cloudquery/tap/cloudquery

Step 2: Log in to CloudQuery CLI

Next, log in to the CloudQuery CLI. If you have't already, you can sign up for a free account as part of this step:

cloudquery login

Step 3: Create a Configuration File

Next, run the following command to initialize a sync configuration file for AWS to PostgreSQL:

cloudquery init --source=aws --destination=postgresql

This will generate a config file named aws_to_postgresql.yaml. Follow the instructions to fill out the necessary fields to authenticate against your own environment.

Step 4: Run a Sync

cloudquery sync aws_to_postgresql.yaml

This will start syncing data from the AWS API to your PostgreSQL database! 🚀

See the CloudQuery documentation for more deployment guides, options and further tips.

FAQs

What is CloudQuery?
CloudQuery is the operating platform for modern cloud infrastructure. It gives platform engineering and cloud operations teams a single control plane for cloud visibility, SQL-based policies, and intelligent automation across their entire cloud estate.
Why does CloudQuery require login?
Logging in allows CloudQuery to authenticate your access to the CloudQuery Hub and monitor usage for billing purposes. Data synced with CloudQuery remains private to your environment and is not shared with our servers or any third parties.
What data does CloudQuery have access to?
CloudQuery accesses only the metadata and configurations of your cloud resources that you specify without touching sensitive data or workloads.
How is CloudQuery priced?
CloudQuery offers flexible pricing based on the number of cloud accounts and usage. Visit our pricing page for detailed plans.
Is there a free version of CloudQuery?
Yes, CloudQuery offers a free plan that includes basic features, perfect for smaller teams or personal use. More details can be found on our pricing page.
How do I sync AWS to PostgreSQL using the CloudQuery CLI?
Follow the AWS to PostgreSQL getting started guide for a complete walkthrough: credential setup, generating a sync configuration with cloudquery init, running the sync, and querying your data in PostgreSQL.
What permissions does the AWS integration require to run?
To sync your data to PostgreSQL the CloudQuery AWS integration only requires read permissions. The integration will never need to make any changes to your AWS setup, and we recommend that you only grant read permissions.
How will my data be kept secure?
CloudQuery does not have access to any of the data you sync from AWS. We only collect only metadata about usage for billing purposes. The CloudQuery CLI will only have access to the data that you grant it permission to access. You will always be in control of the data that is being synced from AWS to PostgreSQL and will have the ability to revoke permissions at any time.
How do I set up AWS in CloudQuery Platform?
CloudQuery Platform provides a guided onboarding wizard that automates IAM role setup via CloudFormation, plus a manual setup option for custom IAM policies. See the AWS integration setup guide for step-by-step instructions, including verification queries and troubleshooting.
How do I get started syncing cloud data into PostgreSQL?
Follow the AWS to PostgreSQL getting started guide for a complete walkthrough of syncing AWS resources into PostgreSQL using the CloudQuery CLI, including local setup with Docker, running your first sync, and querying the results.
Which database versions are supported?
The CloudQuery PostgreSQL integration supports syncing to PostgreSQL version 10 or higher and CockroachDB version 20.2 or higher.
How long will the sync take?
Sync duration depends on several factors, but there are a number of CloudQuery features that ensure that syncs are as fast as possible. CloudQuery syncs data from AWS to PostgreSQL in a streaming fashion using Apache Arrow. This means that as soon as it receives data from AWS it delivers it to the PostgreSQL integration. This means that data is delivered as the sync progresses rather than only at the end.
Can I send data to multiple PostgreSQL instances using the destination plug-in?
Yes, you can configure multiple destination blocks for different PostgreSQL instances or databases.
What are the best practices for handling large datasets with the PostgreSQL destination integration?
Use indexing, partitioning, and batch inserts to manage large datasets effectively and minimize performance impacts.
How do I monitor and troubleshoot data transfers to PostgreSQL?
Check CloudQuery logs for detailed error messages, validate connectivity settings, and monitor database performance using PostgreSQL’s built-in tools.