Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonbabenko/06ef9e96867e790e1a17ca958d2da95c to your computer and use it in GitHub Desktop.
Save antonbabenko/06ef9e96867e790e1a17ca958d2da95c to your computer and use it in GitHub Desktop.
cloudquery notes - 7.6.2021
# Copy image from GHCR into private ECR
aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 835367859851.dkr.ecr.eu-west-1.amazonaws.com
docker pull ghcr.io/cloudquery/cloudquery:0.13.4
docker tag ghcr.io/cloudquery/cloudquery:0.13.4 835367859851.dkr.ecr.eu-west-1.amazonaws.com/cloudquery:0.13.4
docker push 835367859851.dkr.ecr.eu-west-1.amazonaws.com/cloudquery:0.13.4
# Run Postgres locally
docker run --rm -p 5433:5432 postgres psql -h localhost -p 5432 -U postgres -d postgres
export CQ_DSN="host=localhost user=postgres password=pass DB.name=postgres port=5432"
cloudquery fetch --enable-console-log
cloudquery policy --enable-console-log
# Connect locally to posgres
export PGPASSWORD=pass
psql --host=localhost -Upostgres -dpostgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment