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.
-
Ruby on Rails - Deploying a rails application to Elastic Beanstalk
-
Ruby and Sinatra - Deploying a sinatra application to Elastic Beanstalk
-
PHP and MySQL HA Configuration - Deploying a high-availability PHP application with an external Amazon RDS database to Elastic Beanstalk
-
PHP and Laravel - Deploying a Laravel application to Elastic Beanstalk
-
PHP and CakePHP - Deploying a CakePHP application to Elastic Beanstalk
-
PHP and Drupal HA Configuration - Deploying a high-availability Drupal website with an external Amazon RDS database to Elastic Beanstalk
-
PHP and WordPress HA Configuration - Deploying a high-availability WordPress website with an external Amazon RDS database to Elastic Beanstalk
-
Node.js with DynamoDB HA Configuration - Deploying a Node.js application with DynamoDB to Elastic Beanstalk
-
ASP.NET Core - QuickStart: Deploy an ASP.NET application to Elastic Beanstalk
-
Python and Flask - Deploying a Flask application to Elastic Beanstalk
-
Python and Django - Deploying a Django application to Elastic Beanstalk
-
Node.js and Express - Deploying a Node.js Express application to Elastic Beanstalk
-
Docker, PHP and nginx - Creating an ECS managed Docker environment with the Elastic Beanstalk console
You can download the sample applications used by Elastic Beanstalk when you create an environment without providing a source bundle with the following links:
-
Docker – docker.zip
-
Multicontainer Docker – docker-multicontainer-v2.zip
-
Preconfigured Docker (Glassfish) – docker-glassfish-v1.zip
-
Go – go.zip
-
Corretto – corretto.zip
-
Tomcat – tomcat.zip
-
.NET Core on Linux – dotnet-core-linux.zip
-
.NET Core – dotnet-asp-windows.zip
-
Node.js – nodejs.zip
-
PHP – php.zip
-
Python – python.zip
-
Ruby – ruby.zip
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 onlocalhost: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.