Open hanchenglin opened 7 months ago
There is config for DB_NAME, DB_HOST in https://github.com/awslabs/aws-saas-boost/blob/main/resources/tenant-onboarding-app.yaml#L582
Sorry! I changed config can work now, but I think we shoud refactor item layout.
See the instructions for Step 7 in the Getting Started guide. The database name is required for the sample app.
The database name is optional in the App Config form because a database name may not be required by your application (it may be hard coded in your app). Setting the database name in the App Config also triggers the RDS bootstrap Lambda during tenant onboarding.
Sample java can not start by Missing environment variable DB_NAME
How to fix jdbc config error
Error log:
Environment
Other information
I configed Postgres, also auto created database. I can not see where set env in https://github.com/awslabs/aws-saas-boost/blob/main/samples/java/Dockerfile
But sample java need env in https://github.com/awslabs/aws-saas-boost/blob/main/samples/java/src/main/java/com/amazon/aws/partners/saasfactory/configuration/DataSourceConfig.java#L35