Hi all, I’m playing around with octavia cli and cr...
# help-api-cli-orchestration
i
Hi all, I’m playing around with octavia cli and created a postgres source with username/password/database set up as environment variables like this
Copy code
database: ${POSTGRES_PHLO_DATABASE}
password: ${POSTGRES_PHLO_PASSWORD} 
username: ${POSTGRES_PHLO_USERNAME}
and defined in my .env file. I assumed I’ll need to map those variables in the airbyte docker compose yaml too like this
Copy code
environment:
      - POSTGRES_PHLO_DATABASE=${POSTGRES_PHLO_DATABASE}
      ...
I wasn’t sure in which service I should do the mapping so I put it in all of them just to try However, once in Airbyte UI I can’t seem to connect to my postgres source. If I replace the database/password/username by hardcoded real values it works, so the problem seems to be that I can’t figure out how to correctly map the environment variables with the actual values. How can I fix this? Thanks!
a
Hi Ignacio, how are you running the CLI? With the actual command our with a ‘docker compose’ or docker run?
i
With the actual command
Hmm could it be possible that airbyte and cli are not reading the same .env file?