What is Elastic Beanstalk?
Elastic Beanstalk is a service by AWS that makes it easy to deploy and manage web apps. You upload your code, and it takes care of the:
. Server setup & configuration
. Scaling (auto-adjusts resources)
. Load balancing
. Monitoring & health checks
Elastic Beanstalk supports popular frameworks like:
. Node.js
. Ruby
. Python
The platform allows the tech to focus on coding, it takes care of the infrastructure.
Now, let us learn how to Create, Deploy and Manage Web apps with Elastic Beanstalk.
No 1. Open your AWS console and type Elastic Beanstalk to the search bar and select Elastic Beanstalk.

No 3. Select webserver environment and go to Application information to give the App a name, in this article, we are going to name it (MvpApp).

No 4. Scroll down to platform, click the dropdown and select Node.js.

No 5. Choose the default on the rest configuration and Click Next.

No 6. Create Service Role, EC2 Instance Profile and a Keypair.
Service role: It is an IAM (Identity and Access Management) that allows a service to perform actions on your behalf.
EC2 instance profile: Works with EC2 instances. It is a container for an IAM role that can be attached to an EC2 instance when it is launched.
Key Pair: Though optional but its a very important tool in AWS to help combat cyber attacks. A key pair in AWS, is a set of security credentials used to prove your identity when connecting to an Amazon EC2 instance.
No 7. Click on Create Service Role and Take the default, then Next.

No 8. Add Permission and take the default then Next.

No 9. Scroll down and click create role.

Service Role successfully created.
No 10. Create EC2 Instance Role.

No 11. Scroll down then click Next.

No 12. Add Permission Policy and click next but in this article take the default and click next.

No 13. Name the instance role, then Scroll down and click Create.
EC2 Instance Profile Created Successfully.
No 14. Go back to the previous page and refresh for the instance profile created to populate.

No 15. Create a key pair. To create key pair, open your AWS console in another tab, type key pairs to the search bar and select key pairs.
NOTE: You can select a key pair if you have created one already.
No 16. Select create key pair.

No 18. Take the default and select create key pair.

No 19. Refresh and select key pair from the dropdown.

No 21. On the dropdown arrow select the default VPC and enable public IP address.

No 22. Select a region for the instance subnet.

No 24. On the EC2 security groups, click the dropdown arrow then select the default security group.

No 25. Take the default then Next.

No 26. Choose Enhanced on the Health Reporting.

No 27. Take the default then Next.

No 29. App environment launched successfully.

No 30. What to look out for when you launch the domain in a browser.

Other services launched by elastic beanstalk by default.
No 31. Search EC2 on your main page.

No 33. Click Instance running.

No 34. Click the name of the App.

No 36. Scroll down and connect.

No 37. EC2 instance created by Elastic Beanstalk.

No 38. S3 bucket created by Elastic Beanstalk.

No 39. Auto-Scaling group created by Elastic Beanstalk.

Thanks for your time, till my next post..







Top comments (0)