The following is a set of processes outlining my usual AWS workflow with elasticbeanstalk, rds and vpc
- Create eb application on aws console (Select Webserver -> NodeJS)
- Create eb environment with
$ eb init --profile=<PROFILE_NAME>
- Select application
- Do
$ eb deploy
- Update eb config:
- nodejs v8.11.1
- environment type: load balanced
- load balancer: add https listener port 443, redirect to http port 80
- set environment variables
- Create RDS instance
- t2.micro, 20gb, multi-zone = false
- Update VPC to allow elasticbeanstalk to access DB
- Find security group of elasticbeanstalk instance
- Go to security group of RDS instance
- Add port 5432 and enter security group of elasticbeanstalk instance
- Save