Mount EFS To A Docker Container

I needed to mount my AWS EFS container to my Bitnami/Wordpress image manually. At this point, I already had an EFS that I had used before while experimenting with Fargate. I decided to simplify and reduce costs, and manually setup on an EC2 Instance. First Create a Docker Volume Then Run the Container Additional Considerations …

Read more

Laravel Eloquent – Sum with Group By

Using Sum with Group by in Eloquent Have you ever run across code that loops through a collection only to add up a total. This is a good place to improve the efficiency of the code by instead performing the following operation which will construct the query to calculate the total and save you a …

Read more

How To SSH into EC2

SSH into EC2

If it has been a while since I’ve connected to my AWS Linux instance via ssh, I’ll sometimes find myself searching the web for these steps. I’m using a mac so these file locations apply to mac. If you need to connect to an existing EC2 and you have the .pem file (private key) If …

Read more

Elastic Beanstalk Environment Variable Limit Workaround in Laravel

beanstalk hitting a ceiling

The Problem Elastic Beanstalk is a nice and easy way to get up and running with a scalable and highly available cloud platform but it has one very annoying down side. The total size of all your environment variables combined cannot exceed 4kb. I ran into this limit and had to find a solution. Prior …

Read more