Configuring CloudQuery with LocalStack
In this guide we will walk through how to configure CloudQuery to sync from a LocalStack instance.
Introduction to LocalStack
LocalStack is a fully functional local cloud stack that enables developers to Develop and test their cloud and serverless applications offline. It allows developers to test their cloud applications locally, without the need for an internet connection or an AWS account. This can be particularly useful for development and testing, as it allows developers to work on their applications offline and avoid incurring any charges for using AWS services.
Walkthrough
Before beginning this tutorial make sure you have the following tools installed:
Step 1: Start LocalStack
The most straightforward way of running LocalStack is to use the provided localstack docker image that is maintained by LocalStack. To run the image use the following command to spin up the container and to map the correct ports
Step 2: Start PostgreSQL Database
Start a local PostgreSQL Database for CloudQuery to use to store the data we will sync from LocalStack. The simplest way to do this is to start a database running locally in a docker container
Step 3: Configure CloudQuery Destination
Configure a destination for CloudQuery to use to store the data. For this tutorial we will use PostgreSQL, but many other destinations are available here
Step 4: Configure CloudQuery Source
Configure CloudQuery's AWS source integration to use the LocalStack endpoint.
Step 5: Sync Data
Run CloudQuery sync to sync the data from LocalStack to your local PostgreSQL database you started in step 2
Make sure to use fake credentials LocalStack does not support temporary IAM credentials…
Step 6: Use the Data
Query the data you just synced!
Want to see CloudQuery in action? Schedule a demo with our team or check out the platform documentation to learn more.
Want help getting started? Join the CloudQuery community to connect with other users and experts, or message our team directly here if you have any questions.
Try CloudQuery yourself
Self-hosted, open source, and free to start. Or schedule a demo to see the managed version.



