From 639207a91ea133543f4a4712b2f9a56fcc8aa66b Mon Sep 17 00:00:00 2001 From: Hector Eryx Paredes Camacho Date: Fri, 15 Mar 2024 00:36:08 -0600 Subject: [PATCH] Revert back to simple postgres connection string saved at config.yml --- cloudasm/README.md | 2 -- cloudasm/cloudquery/config.yaml | 2 +- cloudasm/cloudquery/docker-compose.yml | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cloudasm/README.md b/cloudasm/README.md index b171c23..5d60252 100644 --- a/cloudasm/README.md +++ b/cloudasm/README.md @@ -14,7 +14,6 @@ Create a `.env` file at [cloudquery](./cloudquery) with content: ``` CLOUDQUERY_API_KEY=your_api_key -POSTGRESQL_CONNECTION_STRING=postgres://postgres:{PASS_FROM_DOCKER_COMPOSE}@postgres:5432/postgres?sslmode=disable ``` @@ -29,7 +28,6 @@ Sample `.env`: CLOUDQUERY_API_KEY=your_api_key AWS_ACCESS_KEY_ID={Your AWS Access Key ID} AWS_SECRET_ACCESS_KEY={Your AWS secret access key} -POSTGRESQL_CONNECTION_STRING=postgres://postgres:{PASS_FROM_DOCKER_COMPOSE}@postgres:5432/ ``` ## Build containers with docker compose diff --git a/cloudasm/cloudquery/config.yaml b/cloudasm/cloudquery/config.yaml index 072782c..919b63e 100644 --- a/cloudasm/cloudquery/config.yaml +++ b/cloudasm/cloudquery/config.yaml @@ -19,4 +19,4 @@ spec: registry: cloudquery version: "v7.5.0" spec: - connection_string: "${POSTGRESQL_CONNECTION_STRING}" \ No newline at end of file + connection_string: "postgres://postgres:pass@postgres:5432/postgres?sslmode=disable" diff --git a/cloudasm/cloudquery/docker-compose.yml b/cloudasm/cloudquery/docker-compose.yml index 0cfe94e..625c682 100644 --- a/cloudasm/cloudquery/docker-compose.yml +++ b/cloudasm/cloudquery/docker-compose.yml @@ -4,7 +4,6 @@ services: command: sync --cq-dir /cache/.cq --log-console --no-log-file --telemetry-level none /config.yml environment: CLOUDQUERY_API_KEY: ${CLOUDQUERY_API_KEY} - POSTGRESQL_CONNECTION_STRING: ${POSTGRESQL_CONNECTION_STRING} volumes: - ./config.yaml:/config.yml - ./.cq:/cache/.cq