I'm working on a project that utilizes WordPress' admin front end to manage data, and a Laravel API that accesses the WP database (via Corcel) to return JSON/HTML/whatever.
I'd like to run these as separate apps within the same Elastic Beanstalk environment, connecting to the common RDS instance which sits outside of EB.
There are no problems at all getting the WP and Laravel apps up and running separately - following the AWS tutorials, I can get WP installed no problem, and I can get Laravel installed and the migrations to run.
I'm just struggling to figure out the "correct" way to hook them up to the common RDS instance I've already created. I can't seem to get the WordPress install to talk to RDS if I set up Laravel first, and vice versa. I've researched and tinkered with Security Groups but just can't get them to co-exist.
Without getting into the micro details, is what I've described workable, or is it crazy at a basic level? Should I just drop the idea of running them as separate apps and just have them running together? If anyone has a suggestion on a better/best approach to what I'm trying to do, I'd be extremely grateful.