Elastic Beanstalk with RDS and SEQUELIZE migrations

  • Create and EBS applications  (eb init, eb create on aws cli)  or through the AWSUI

  • Create an EBS environment (staging, testing, production, etc) 

  • Create RDS on AWS UI

  • Create security group on RDS, add it to the EBS application.  This allows the EBS to connect to the RDS and have them indenpendent of each other.  See: https://amzn.to/2O8oLId

  • Add process.env vars about DB to your EBS through AWS UI

  • Update config/config.js in your Node app to include the new process.env vars to connect

  • Update location of Node in EBS container.  It is not in the usual spot.  See: https://bit.ly/2wQGT2I 

  • Run your sequelize migrations using the .ebextensions folder.  See: https://bit.ly/2wNcn8U and https://bit.ly/2wNcn8U

This checklist was created by zprager

copy saved

copies saved