Skip to content

Instantly share code, notes, and snippets.

@clodal
Last active July 23, 2018 14:03
Show Gist options
  • Save clodal/c49ed4433eb3ccf5952fb4df01ec5c04 to your computer and use it in GitHub Desktop.
Save clodal/c49ed4433eb3ccf5952fb4df01ec5c04 to your computer and use it in GitHub Desktop.

Deploying an AWS Elastic Beanstalk NodeJS instance

The following is a set of processes outlining my usual AWS workflow with elasticbeanstalk, rds and vpc

  1. Create eb application on aws console (Select Webserver -> NodeJS)
  2. Create eb environment with $ eb init --profile=<PROFILE_NAME>
  3. Select application
  4. Do $ eb deploy
  5. 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
  6. Create RDS instance
    • t2.micro, 20gb, multi-zone = false
  7. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment