AWS For Developers For Dummies
Book image
Explore Book Buy On Amazon
The console approach to creating an application entry offers the greatest level of AWS support, which makes creating basic, one-time application entries easy. However, using the console isn’t necessarily the fastest approach. Also, you can’t script it, and finding some of the details can be difficult. The following steps describe how to create the application entry using the console approach:
  1. Sign in to AWS using your user account.
  2. Navigate to the Elastic Beanstalk Console.

    You see a Welcome page that contains interesting information about Elastic Beanstalk and provides links to additional information and sample applications. In the upper-right corner, you see Create New Application.

    avoid select a platform Avoid using the one-click, Select a Platform option whenever possible.

    At the bottom of the page, you see the Select a Platform list box. This list box lets you create a test setup that requires only a single click. However, the default options include configuring your environment to use both load balancing and autoscaling. Consequently, when you try to complete the setup, you see an error message stating that the application can’t start until you upgrade your EC2 configuration. The upgrade will cost you money.

  3. Click Create New Application.

    You see the Application Information page. You need to provide an application name (identity) and, optionally, describe it.

    describe your AWS app Identify your application and describe it.
  4. Type TestApp in the Application Name field, type A test application. in the Description field, and then click Next.

    select app environment Choose an application environment.

    You see the New Environment page. EB provides two default environments:

    • Web Server Environment: Lets you run web applications using any of the languages that support web development.
    • Worker Environment: Creates a background application that you can call on in a variety of ways. Background applications don’t provide user interfaces, so you normally use this option to create support for another application.
  5. Click Create Web Server.

    EB asks you to configure the environment type. The Preconfigured Configuration field contains a listing of languages that you can use. The Environment Type field defines how to run the application: single instance or using both load balancing and autoscaling.

    app environment type Define the application environment type.
  6. Choose PHP in the Preconfigured Configuration field, choose Single Instance in the Environment Type field, and then click Next.

    You see options for an application source. Normally you upload your own application or rely on an application defined as part of a Sample Storage Service (S3) setup. However, because this is an example, the next step will ask you to use a sample application. Working with sample applications makes experimenting easier because you know that nothing is wrong with the application code to cause a failure.

    source of application code Specify the source of the application code.
  7. Select the Sample Application option and click Next.

    EB displays the Environment Information page. You must create a unique environment name for your application.

    name your app enviroment Provide a name for the application environment.
  8. Type MyCompany-TestEnv in the Environment Name field.

    Note that EB automatically provides an Environment URL field value for you. In most cases, you want to keep that URL to ensure that the URL will work properly. The Environment URL field automatically provides the location of your EC2 instances to run the web application, so normally you won’t need to change this value, either.

  9. Click Check Availability.

    The square around the Environment URL field changes to green if the check is successful. Otherwise, you need to provide a different Environment Name field entry.

  10. Type A test environment. in the Description field and then click Next.

    EB asks about the use of additional resources. Remember that additional resources generally incur fees, so keep these options blank when working with a test application. The RDS DB option creates a link to a database to use with the application. The VPC option creates a Virtual Private Cloud (VPC) to run the application.

    avoid extra resources AWS Avoid using additional resources unless you actually need them.
  11. Click Next.

    At this point, you need to define the configuration details. The options you use depend on how you want to run the application. However, the steps tell you how to maintain a free setup. Using other Instance Type field settings could incur costs.

    instance environment Specify the instance environment for running the application.
  12. Choose t2.micro in the Instance Type field and the key pair that you want to use.
  13. (Optional) Type your email address in the Email Address field.
  14. Choose Basic in the System Type field (Health Reporting section) and then click Next.

    EB asks whether you want to define Environment Tags. These are key value pairs used to help configure your application. The sample application doesn’t require any tags.\

  15. Click Next.

    You see the Environment Tags page. This page can become important to developers who need to configure environment tags as part of an application setup. The tags use name value pairs, just as you use when configuring your environment variables in any localized operating system. This example doesn’t require any tags, but you should keep them in mind.

    environment tags Define any environment tags needed to support your application.
  16. Click Next.

    The Permissions page contains options for creating or using permissions. The test setup doesn’t contain any permissions, so you won’t see any options in the Instance Profile or Service Role fields. If you had already defined another application, these fields would allow you to reuse those existing permissions. EB creates a set of default permissions for you, which you can later modify as needed.

    Permissions page AWS The Permissions page lets you reuse permissions as needed.
  17. Click Next.

    You see a Review page that contains all the settings made so far in the procedure. Check the settings to ensure that you made the entries correctly.

  18. Click Launch.

    You see EB launching your application. Be patient: This process can require several minutes to complete.

    waiting to deploy app Wait for the application to deploy.

You can find some sample applications from AWS.

About This Article

This article is from the book:

About the book author:

John Mueller is an author and technical editor who has written 103 books. Some of his current works include Python development books. He has also written AWS For Admins For Dummies, which provides administrators a great place to start with Amazon Web Services (AWS). John has had an interest in AWS since its inception. In fact, he wrote Mining Amazon Web Services based on that humble beginning. Be sure to read John's blog at

This article can be found in the category: