Hi Everyone Has anyone used AWS secrets to inject...
# orm-help
m
Hi Everyone Has anyone used AWS secrets to inject env values into a container? Its works great, the only issue is the values are stored in one key value pair as a json string e.g:
Copy code
DBCLUSTER_SECRET="{\"password\":\"pass\",\"dbname\":\"dbname\",\"engine\":\"mysql\",\"port\":3306,\"host\":\"localhost\",\"username\":\"user\"}"
Prisma wants a DB URL within the schema file. Is is possible to parse the JS string within the Prisma schema? Or any idea if its possible to have each value as a key value pair, from AWS rather than on JSON string?
Copy code
DB_PASSWORD=pass
r
If you’re using Prisma in your application then this should work.
m
Ok thanks for the link. Looks like that will work
👍 1