Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to configure Postgres URL as environment variable #588

Open
navneeshgarg9 opened this issue Jan 6, 2025 · 0 comments
Open

unable to configure Postgres URL as environment variable #588

navneeshgarg9 opened this issue Jan 6, 2025 · 0 comments

Comments

@navneeshgarg9
Copy link

PGSync version: 3.3.0

Postgres version: 13.4

Elasticsearch version: 8.3.2

Redis version: 7.2.2

Python version: 3.9

Problem Description: We are using Aurora DB as database and i am trying to connect Aurora DB using DB URL instead of configured DB USER, DB Name, DB Host and DB Password individually. Is there any way to configured PG URL as environment variable?

Error Message (if any):

Error: you need to provide a host and port to test.
Usage:
    wait-for-it.sh host:port [-s] [-t timeout] [-- command args]
    -h HOST | --host=HOST       Host or IP under test
    -p PORT | --port=PORT       TCP port under test
                                Alternatively, you specify the host and port as host:port
    -s | --strict               Only execute subcommand if the test succeeds
    -q | --quiet                Don't output any status messages
    -t TIMEOUT | --timeout=TIMEOUT
                                Timeout in seconds, zero for no timeout
    -- COMMAND ARGS             Execute command with args after the test finishes
Traceback (most recent call last):
  File "/usr/local/bin/pgsync", line 4, in <module>
    from pgsync import sync
  File "/usr/local/lib/python3.9/site-packages/pgsync/sync.py", line 21, in <module>
    from . import __version__, settings
  File "/usr/local/lib/python3.9/site-packages/pgsync/settings.py", line 160, in <module>
    PG_USER = env.str("PG_USER")
  File "/usr/local/lib/python3.9/site-packages/environs/__init__.py", line 136, in method
    raise EnvError(
environs.EnvError: Environment variable "PG_USER" not set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant