What is AWS Elastic BeanStalk ?
AWS Elastic Beanstalk is a fully managed service by Amazon Web Services, offering a simplified approach to deploying, managing, and scaling web applications. Developers can effortlessly upload their code, and Elastic Beanstalk takes care of tasks like infrastructure provisioning, load balancing, and application health monitoring. It supports various programming languages and platforms, automatically scales based on demand, and integrates seamlessly with other AWS services like CloudWatch, RDS, and S3.
Elastic Beanstalk environments can be easily managed, supporting multiple stages like development, testing, and production. Its integration with various AWS services offers a comprehensive ecosystem for application deployment. Developers can achieve a balance between ease of use and customization, ensuring their applications run efficiently at scale.
Let's create an elastic beanstalk using these basic steps;
Step 1:
Navigate the Console, locate the search bar and type AWS elastic beanstalk.
Step 2:
Click on Create application, on the left panel, click on Applications
Step 3:
Enter the name of your application on the Application Information Page.
Then Click Create to initiate the application creation process.
Step 4:
Now proceed to set up an environment by Navigating to the left hand , click on Environment
Step 5:
Now we configure the environment
Environment tier -Choose the Web Server Environment
Application Name - Then name your environment .
Platform - Managed Platform
Choose PHP as your platform and leave others with the default recommended. Then Click next to proceed
Step 6:
Configure service access
Click on Use an existing Service role.
If you click on EC2 Instance at this point it is not updated, so we need to work on this.
Step 7:
Open Console on a new tab and choose the IAM to assign roles
Step 8:
- Use Case - Ec2
- Add permissions to AWS Elasticbeanstalkwebtier _ Give a Role name
Step 9:
Proceed to click Create role . Role Created
Step 10:
Configure Network Settings
- Under the VPC section, Choose the default recommended .
- Choose an availability zone.
- Click Next to proceed
Choose the default recommended for everything then proceed to submit
Step 11:
Click โSubmitโ to launch the environment.
Verify the success message on the page.
Step 12:
Copy the domain link provided and paste it in your web browser.
Yayyyy...You have successfully created a PHP app using AWS Elastic Beanstalk.
Step 13:
Now we verify if our instance is running and resources.
Top comments (0)