Tutorials and samples - AWS Elastic Beanstalk

Tutorials and samples

Language and framework specific tutorials are spread throughout the AWS Elastic Beanstalk Developer Guide. New and updated tutorials are added to this list as they are published. The most recent updates are shown first.

These tutorials are targeted at intermediate users and may not contain instructions for basic steps such as signing up for AWS. If this is your first time using AWS or Elastic Beanstalk, check out the Getting Started walkthrough to get your first Elastic Beanstalk environment up and running.

You can download the sample applications used by Elastic Beanstalk when you create an environment without providing a source bundle with the following links:

More involved sample applications that show the use of additional web frameworks, libraries and tools are available as open source projects on GitHub:

  • Load-balanced WordPress (tutorial) – Configuration files for installing WordPress securely and running it in a load-balanced Elastic Beanstalk environment.

  • Load-balanced Drupal (tutorial) – Configuration files and instructions for installing Drupal securely and running it in a load-balanced Elastic Beanstalk environment.

  • Scorekeep - RESTful web API that uses the Spring framework and the AWS SDK for Java to provide an interface for creating and managing users, sessions, and games. The API is bundled with an Angular 1.5 web app that consumes the API over HTTP. Includes branches that show integration with Amazon Cognito, AWS X-Ray, and Amazon Relational Database Service.

    The application uses features of the Java SE platform to download dependencies and build on-instance, minimizing the size of the souce bundle. The application also includes nginx configuration files that override the default configuration to serve the frontend web app statically on port 80 through the proxy, and route requests to paths under /api to the API running on localhost:5000.

  • Does it Have Snakes? - Tomcat application that shows the use of RDS in a Java EE web application in Elastic Beanstalk. The project shows the use of Servlets, JSPs, Simple Tag Support, Tag Files, JDBC, SQL, Log4J, Bootstrap, Jackson, and Elastic Beanstalk configuration files.

  • Locust Load Generator - This project shows the use of Java SE platform features to install and run Locust, a load generating tool written in Python. The project includes configuration files that install and configure Locust, a build script that configures a DynamoDB table, and a Procfile that runs Locust.

  • Share Your Thoughts (tutorial) - PHP application that shows the use of MySQL on Amazon RDS, Composer, and configuration files.

  • A New Startup (tutorial) - Node.js sample application that shows the use of DynamoDB, the AWS SDK for JavaScript in Node.js, npm package management, and configuration files.