rails-lambda / lamby

🐑🛤 Simple Rails & AWS Lambda Integration
https://lamby.cloud
MIT License
602 stars 29 forks source link

More than just HTTP API #89

Closed metaskills closed 3 years ago

metaskills commented 3 years ago

The starter project assumes a public facing application using HTTP API. But Lamby works fine for REST API & ALBs. Outline why these are important and demo code changes to use. Propose the following guides additions and updates.

metaskills commented 3 years ago

Remember to fix the docs here in the legacy migration section. https://lamby.custominktech.com/docs/anatomy#installing-for-legacy-applications

kornate commented 3 years ago

First off, cloud hero, I adore your frequent commits and seeing lamby skyrocket in maturity so quickly!

I like the idea of the demo including guidance around private applications, as this is precisely what I'm trying to achieve at the moment, breaking up a monolithic rails 5 application as a complete rewrite... being a docker-pro lambda-amateur. If I can help somehow, I will.

Thank you for your dedication!

kornate commented 3 years ago

Do you have any suggestions on how to secure a deployment to local subnets only? Thank you

metaskills commented 3 years ago

Yup, I'm going to need to update some sections. Here is what I see.

Create a new VPC guides section. Link to it from the Simple MySQL Database (https://lamby.custominktech.com/docs/database_options#simple-mysql-setup) section. I will also need to pull this sub section of the RDS Proxy (https://lamby.custominktech.com/docs/database_options#3-configure-aws-sam) to point to the new VPC guide page. FYI, assigning your Lambda a VpcConfig is how you can talk to Databases and also make it private. So

The guides for the private app will be based off this. Hope it helps for now. https://gist.github.com/metaskills/e417111c9525d1c4f1c162cb81d72595

metaskills commented 3 years ago

Done, site should update shortly. https://github.com/customink/lamby_site/commit/60df7518023181ebc48e7c5a33ea686bed25cff4