How to Create Elastic Beanstalk on Amazon Web Service(AWS).

An AWS Elastic Beanstalk environment is a collection of AWS resources running an application version. You can deploy multiple environments when you need to run multiple versions of an application. For example, you might have development, integration, and production environments.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Compute select Elastic Beanstalk.

 

Fig 2

 

  • Click on Create a new environment.

 

Fig. 3

 

  • Click on Web environment.
  • Click on Select.

 

Fig. 4

 

  • Provide the application name.
  • Provide key name & value for application.

 

Fig. 6

 

  • Provide the Environment name.
  • Provide the domain name & check the availability.

 

Fig. 6

 

  • Select Managed Platform like :php ,Nodejs or docker etc.
  • Select Platform Branch & version.

 

Fig. 7

 

  • Select Sample application.
  • Click on Configure more options.

 

Fig. 8

 

  • Select Configuration presets, Single or high availability as per requirement.

 

Fig 9

 

  • Click on Edit instances.

 

Fig 10

 

  • Select Root volume type.
  • Provide the volume size in GB.

 

Fig 11

 

  • Select existing security group.
  • Click on Save.

 

Fig 12

 

  • Click on Edit Capacity.

 

Fig 13

 

  • Select Environment type.
  • Provide min or max numbers on instance required.

 

Fig 14

 

  • Select instance type & AMI.
  • Select availability zone.

 

Fig 15

 

  • Leave the other configurations.

 

Fig 17

 

  • Click on Save.

 

Fig 18

 

  • Click on Edit Load balancer.

Fig 19

 

  • Select Load balancer type.

 

Fig 20

 

  • Add listener & Processes.

 

Fig 21

 

  • Add Rules.

 

Fig 22

 

  • Click on Save.

 

Fig 23

 

  • Click on Edit Security.

 

Fig 24

 

  • Provide Service role.
  • Provide EC2 key pair & IAM instance profile.
  • Then click on Save.

 

Fig 25

 

  • Click on Edit Notifications.

 

Fig 27

 

  • Provide Email address to receive email notifications for events from your environment.
  • Click on Save.

 

Fig 28

 

  • Click on Edit Database.

 

Fig 29

 

  • Select Database engine & version.
  • Select Instance class & storage size.
  • Provide the username & password.

 

Fig. 30

 

  • Create Snapshot to save a snapshot of the database.
  • Click on Save.

 

Fig. 31

 

  • Click on Tags.

 

Fig. 32

 

  • Provide key name & value for environment.
  • Click on Save.

 

Fig. 33

 

  • Click on Edit Network.

 

Fig. 34

 

  • Create or select existing VPC.

 

Fig. 32

 

  • Select load balancer availability zone & subnets.

 

Fig. 33

 

  • Select Instance availability zone & subnets.
  • Click on Save.

 

Fig. 34

 

  • Click on Create environment.
  • Then Create Environment is starting.

 

Fig. 36

 

  • After sometime environment is ready.

 

Fig. 37

 

  • Then go to elastic beanstalk console page.
  • New environment is there with the name we provide.

 

Fig. 38

 

Create Elastic Beanstalk using Shell

  1. To create a new application.

aws elasticbeanstalk create-application –application-name app-name –description “example”

2. To create a new environment for an application.

aws elasticbeanstalk create-environment –application-name app-name –environment-name env-name –cname-prefix app-prefix –version-label v1 –solution-stack-name “solution-stack-name”

 

Leave a Reply