Trying to understand how we would: A) deploy prism...
# orm-help
w
Trying to understand how we would: A) deploy prisma to ec2 (docker is perfectly suitable here), that talks to an aws RDS database B) Deploy the graphql-yoga based api that our frontend app will consume also to ec2 (again docker is perfectly fine) — ec2 not lambda as we really need subscriptions to work. Documentation in this area seems to be sorely lacking. Fargate is interesting, but we had problems with it in our environment as we’ve already got many vpcs in play and while it didn’t complain about vpc’s during the cloudformation build, deploys simply timeout, presumably lack of communication between various pieces.
s
I am planning on following a very similar approach and am hoping that someone with more experience (esp. in the deployment phase) will chime in. I know there are users on here who have experience with Fargate.
m
I am on Fargate and also have a docker build that runs yoga no problem. Will share.
Here's the dockerfile I use for Lamda (hence the AMZ linux) and also to use Sharp, not sure it's the best and can likely be trimmed down, but it will run 🙂 https://gist.github.com/medelman17/bd14e1da369701c95d7cbd6b8b1e9912
👏 1
In case you are wondering, Sharp (image processing) is amazing but a huge pain in the ass in that it needs to be compiled in the exact version of Linux on which it will run. Thus, I have to have the docker box and use it to upload to AWS 🙄