How to deploy an application using Elastic Beanstalk
Hello Everyone
Welcome to CloudAffaire and this is Debjeet.
In the last blog post, we have discussed Elastic Beanstalk.
https://cloudaffaire.com/elastic-beanstalk/
In this blog post, we will discuss how to deploy an application using Elastic Beanstalk.
How to deploy an application using Elastic Beanstalk:
With Elastic Beanstalk, you can deploy, scale and monitor your application. To deploy an application, 1st you need your application code ready. You can directly upload your application code from your local system or upload the code to an S3 bucket and provide the S3 bucket reference. In this blog post, we will deploy our 1st PHP web application using AWS Elastic Beanstalk.
Step 1: Login to the AWS console and navigate to ‘Elastic Beanstalk’.
Step 2: Click ‘Get started’.
Step 3: Provide an application name, application platform and check ‘Upload your code’. Click ‘Upload’.
Note: We are configuring our application in a standalone EC2 instance. If you need high availability, you can click ‘Configure more options’.
Step 4: Choose your file and provide a version label. Click ‘Upload’ to upload the code.
You can download MyShoppingListV1.zip from below GitHub repository.
https://github.com/CloudAffaire/Elastic-Beanstalk
Step 5: Once your code is uploaded, click ‘Create application’.
Our web application created successfully. Click on the link to view your application.
If you check the log, you can observe that AWS has created one S3 bucket to hold your environment configurations, EC2 instance, Security group and an elastic IP address for your application.
Cleanup:
Navigate to application root and from ‘Actions’ click ‘Delete application’.
Provide application name and click ‘Delete’.
Hope you have enjoyed this article. In the next blog post, we will discuss how to update an application version in Elastic Beanstalk.
To get more details on AWS Elastic Beanstalk, please refer below AWS documentation
https://docs.aws.amazon.com/elastic-beanstalk/index.html