Elastic Beanstalk awesome service of Amazon’s

Tarikul Islam
Oceanize Lab Geeks
Published in
3 min readDec 1, 2017

What is Elastic Beanstalk ?

Elastic Beanstalk is Amazon’s service where you can quickly deploy and manage applications in the AWS Cloud with specific environment without worrying about the infrastructure that runs those applications.

What is the Benefits of Elastic Beanstalk ?

  1. We can create different version of the our application which we can deploy within very short time.
  2. We can create same application different environment. Like a php application with php-5.6 and php 7.2 so that we can deploy in both environment
  3. It can automatically start new instance depending on your load using Load Balancer
  4. If you want to run some bash script when when you deploy it it can be done with .ebextension folder

How to start Elastic Beanstalk ??

=> Login in your AWS console account

=> Now you can select Elastic Beanstalk

Elastic Beanstalk Home

=> Now click on Create New Application for create a new application

New Application name and description
Create new Environment

=> Now you can select your Platform (here I select PHP). And you can specify the version of the PHP

Select Platform
Upload/select your application source code

=> Set your environment name and set your public domain name

=> This step is Important. Here you have to select which type of instance you want to run. And also select your key-pair for future login in EC2 instance

Select Instance type and key

Finally review your Environment setup and check again. if all is ok then click lunch Button and start your application

Now your application panel look like

From here you can Upload and deploy new version of you application. You can change your version of configuration

Conclusion

If you want to reduce system operations and just focus on the application, then Elastic Beanstalk would be the best choice for that. You can keep your site in version control and easily deploy to your environment whenever you make changes. It will also setup an Autoscaling group which can spawn up more EC2 instances if traffic is growing.

--

--