Sample Express application for AWS Elastic Beanstalk
HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
abhiksingh Remove ASG related config options
Removed the ASG related config options to enable deploying the sample on a 'Single Instance' environment.
Latest commit f535175 Jan 26, 2017
Permalink
Failed to load latest commit information.
.ebextensions Remove ASG related config options Jan 27, 2017
misc Updated theme-flow.png Jul 29, 2015
static Intial commit Jul 29, 2015
views Intial commit Jul 29, 2015
.gitignore Intial commit Jul 29, 2015
LICENSE Initial commit Jul 27, 2015
README.md Add getting started instructions Aug 23, 2016
app.js Intial commit Jul 29, 2015
iam_policy.json Intial commit Jul 29, 2015
npm-shrinkwrap.json Intial commit Jul 29, 2015
package.json Intial commit Jul 29, 2015

README.md

AWS Elastic Beanstalk Express Sample App

This sample application uses the Express framework and Bootstrap to build a simple, scalable customer signup form that is deployed to AWS Elastic Beanstalk. The application stores data in Amazon DynamoDB and publishes notifications to the Amazon Simple Notification Service (SNS) when a customer fills out the form.

Features

Themes

The code includes several Bootstrap themes from bootswatch.com. You can dynamically change the active theme by setting the THEME environment variable in the Elastic Beanstalk Management Console:

Installed themes include:

You can get started using the following steps:

  1. Install the AWS Elastic Beanstalk Command Line Interface (CLI).
  2. Create an IAM Instance Profile named aws-elasticbeanstalk-sample-role with the policy in iam_policy.json. For more information on how to create an IAM Instance Profile, see Create an IAM Instance Profile for Your Amazon EC2 Instances.
  3. Run eb init -r <region> -p "Node.js" to initialize the folder for use with the CLI. Replace <region> with a region identifier such as us-west-2 (see Regions and Endpoints for a full list of region identifiers). For interactive mode, run eb init then,
  4. Pick a region of your choice.
  5. Select the [ Create New Application ] option.
  6. Enter the application name of your choice.
  7. Answer yes to It appears you are using Node.js. Is this correct?.
  8. Choose whether you want SSH access to the Amazon EC2 instances.
    Note: If you choose to enable SSH and do not have an existing SSH key stored on AWS, the EB CLI requires ssh-keygen to be available on the path to generate SSH keys.
  9. Run eb create --instance_profile aws-elasticbeanstalk-sample-role to begin the creation of your environment.
  10. Enter the environment name of your choice.
  11. Enter the CNAME prefix you want to use for this environment.
  12. Once the environment creation process completes, run eb open to open the application in a browser.
  13. Run eb terminate --all to clean up.