Setting up Elastic Beanstalk - tooltwist/documentation GitHub Wiki

These instructions show how to create a new Elastic Beanstalk application and/or environment. If you want to deploy to an existing environment see Deploying a NodeJS app to Elastic Beanstalk.

Assuming you already have an AWS Account... first, go to the Elastic Beanstalk management console.

2016-07-17_01-00-45

2016-07-17_00-53-07

Click on New Application and proceed through the steps. A few things to note:

  1. Choose "Web Server environment" - we'll be accessing it over port 80.
  2. For Environment Type choose Single Server.
  3. Ensure you specify a "Key Pair".
  4. Start with the sample application; you can replace it with your application once the servers are running.
  5. Start without a database, and add one if required later.

Setting up Policies

You'll wish to specify policies that allow developers and testers to deploy to some specific environments, but to prevent them having full admin access to the EC2 account. This page has some example policy definitions.

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ExamplePolicies_AEB.html