- Go 1.19+ (to build the integrations)
Clone the repository:
git clone https://github.com/cloudquery/cloudqueryBuild the CLI and all integrations:
./scripts/build.sh- Execute
go run main.go servefrom the chosen plugin directory under ../plugins/source (e.g. ../plugins/source/aws). - Create a config file for the source plugin. See the plugin's README.md for details. In the global spec section, set
registrytogrpcandpathtolocalhost:7777. For example:kind: "source" spec: # global config name: "aws" version: "VERSION_SOURCE_AWS" registry: "grpc" path: "localhost:7777" tables: ["*"] destinations: ["postgresql"] spec: # plugin-specific config
- Create a configuration file for the destination plugin to load data into. See the Destination Integration's README.md for examples.
- Open another terminal and run
bin/cloudquery sync <config-dir>, where<config-dir>is the directory containing the config files.
Note that plugin logs will be output to the plugin process terminal.
To run tests all unit tests for a plugin, inside the plugin directory run:
make test # This runs go test -race ./...Unit Tests don't require any credentials, but some may require internet access.
Unit tests for integrations include:
- Specific resource tests. You can find those next to each resource, in the
resources/servicesfolder under the plugin directory. - Client tests. You can find those in the
clientfolder.