rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

`ValueError: invalid literal for int() with base 10: '5432:5432'` #30

Closed jaxxstorm closed 1 year ago

jaxxstorm commented 1 year ago

I'm trying to run the example in ECS to help someone understand an ECS based deployment.

I have set the following env vars:

"environment": [
                    {
                        "name": "DEFAULT_SQLALCHEMY_DATABASE_URI",
                        "value": db_uri
                    },
                    {
                        "name": "DEFAULT_DATABASE_DB",
                        "value": database.db_name,
                    },
                    {
                        "name": "DEFAULT_DATABASE_HOSTNAME",
                        "value": database.endpoint,
                    },
                    {
                        "name": "DEFAULT_DATABASE_USER",
                        "value": database.username,
                    },
                    {
                        "name": "DEFAULT_DATABASE_PASSWORD",
                        "value": database.password,
                    },
                    {
                        "name": "DEFAULT_DATABASE_PORT",
                        "value": "5432",
                    },
                    {
                        "name": "FIRST_SUPERUSER_EMAIL",
                        "value": "mail@lbrlabs.com",
                    },
                    {
                        "name": "FIRST_SUPERUSER_PASSWORD",
                        "value": "correct-horse-battery-stable",
                    },
                    {
                        "name": "SECRET_KEY",
                        "value": "super-secret",
                    }
                ],

Unfortunately, no matter what I seem to do, the port doesn't seem to be set correctly:

ValueError: invalid literal for int() with base 10: '5432:5432'
jaxxstorm commented 1 year ago

User error, closing