Elastic Beanstalk awesome service of Amazon’s
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 ?
- We can create different version of the our application which we can deploy within very short time.
- 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
- It can automatically start new instance depending on your load using Load Balancer
- 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
=> Now click on Create New Application
for create a new application
=> Now you can select your Platform (here I select PHP). And you can specify the version of the PHP
=> 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
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.