-
Notifications
You must be signed in to change notification settings - Fork 17
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
database environment parameters in serverless.yml #3
Comments
Hi Ramaswamy. From what you described, I guess that the DB_DIALECT parameter is missing. If the issue persists, let me know so that I can help you. |
I have added the DB_DIALECT as well. still the same problem. The issue here is how to resolve DB parameters when they are dynamically generated from an RDS resource section within the same serverless yml file & stored as properties in 'custom' section of the yml ? |
Just encountered the same issue. I have the following:
Then, to get the endpoint and the port:
On the environment:
Then I get:
Alright. Now if I hardcode the port, that error disappears, but this comes up:
|
I'm also getting this issue.
Then I set my environment variables like this:
But when I run |
My serverless.yml contains DB parameters like so
environment:
DB_NAME: ${self:custom.database.name}
DB_USERNAME: ${self:custom.database.username}
DB_PASSWORD: ${self:custom.database.password}
DB_HOST: ${self:custom.database.host}
DB_PORT: ${self:custom.database.port}
Will these parameters get resolved if I run 'sls migrations up' . I am currently getting a
Serverless: Setting up connections...
Serverless: Looking for pending migrations...
Serverless: Error trying to apply migrations:
SequelizeConnectionError: connect ENOENT [object Object]
The text was updated successfully, but these errors were encountered: