lambda@edge prototype

Recently I was doing a MVP for replacing a ELB/EC2/Docker based static site preview stack with a cloudfront/lambda/s3 based one. Background The purpose of this is to reduce the maintenance we has to do with the EC2 stack like regular AMI update. reduce the complexity of the stackĀ  as the previous one involves building custom…

nodejs log to file for multiple modules

There are several projects provide the ability to log to file for nodejs like log4js, winston etc. I picked winston for no specific reason. init setup is pretty simple, just follow what is written in Github. To make it be able to be shared by multiple modules, we need some tweaks. First we need a…

ssh to the ec2 instance(beanstalk)

Configure Security Group In the AWS console, open the EC2 tab. Select the relevant region and click on Security Group. You should have an elasticbeanstalk-default security group if you have launched an Elastic Beanstalk instance in that region. Edit the security group to add a rule for SSH access. The below will lock it down…