Created
March 14, 2024 00:24
-
-
Save spangenberg/f8a3a8c834066a3ab9def355bb196cc4 to your computer and use it in GitHub Desktop.
CloudQuery Test setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| cloudquery: | |
| image: ghcr.io/cloudquery/cloudquery:latest | |
| command: sync --cq-dir /cache/.cq --log-console --no-log-file --telemetry-level none /config.yml | |
| environment: | |
| CLOUDQUERY_API_KEY: {{SIGN UP https://cloud.cloudquery.io/ AND CREATE TOKEN}} | |
| AWS_ACCESS_KEY_ID: XYZ | |
| AWS_SECRET_ACCESS_KEY: ZYX | |
| volumes: | |
| - ./config.yaml:/config.yml | |
| - ./.cq:/cache/.cq | |
| postgres: | |
| image: postgres:latest | |
| command: -c wal_level=logical | |
| ports: | |
| - 5432:5432 | |
| environment: | |
| POSTGRES_PASSWORD: pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: source | |
| spec: | |
| name: aws | |
| path: cloudquery/aws | |
| registry: cloudquery | |
| version: "v25.2.2" | |
| tables: ["aws_ec2_instances", "aws_s3_buckets"] | |
| skip_dependent_tables: true | |
| deterministic_cq_id: true | |
| destinations: ["postgresql"] | |
| spec: | |
| regions: | |
| - us-east-1 | |
| --- | |
| kind: destination | |
| spec: | |
| name: postgresql | |
| path: cloudquery/postgresql | |
| registry: cloudquery | |
| version: "v7.5.0" | |
| spec: | |
| connection_string: "postgres://postgres:pass@postgres:5432/postgres?sslmode=disable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment