DEV Community

cent-dxv
cent-dxv

Posted on

πŸš€ 30+ AWS Lab Challenge – Part 1: Hosting with Elastic Beanstalk

πŸš€ 30+ AWS Lab Challenge – Part 1: Hosting with Elastic Beanstalk

After earning my AWS Certified Developer – Associate certification πŸŽ“, I wanted to push myself beyond just theory.

That’s why I started a personal challenge: 30+ AWS Labs β€” one service at a time, hands-on, step by step.

This is Part 1 of that challenge: AWS Elastic Beanstalk.


🌱 What is AWS Elastic Beanstalk?

Think of Elastic Beanstalk as a gardener for your app.

  • You bring your app (like seeds 🌱).
  • Beanstalk plants it, waters it, and makes sure it grows in healthy soil (servers, scaling, monitoring).
  • You don’t need to worry about the hard stuff like EC2 setup, load balancers, or scaling. AWS does that for you.

It’s one of the easiest ways to deploy apps on AWS without being a DevOps expert.


πŸ› οΈ Step-by-Step Lab

1️⃣ Create a React app

For this lab, I used Lovable.dev (a no-code AI tool) to generate a sample project: a luxury tennis club app where users can book courts.

Then I refined the project locally with VS Code + GitHub.

2️⃣ Prepare the project

  • Build your app with npm run build.
  • Add a Procfile that tells Beanstalk how to run the app.
  • Zip your dist, package.json, Procfile, and configs.

3️⃣ Create an environment in Elastic Beanstalk

  • Choose Web Server (for websites) or Worker (for background jobs).
  • Elastic Beanstalk will handle EC2, load balancers, and scaling for you.

4️⃣ Configure service access

Elastic Beanstalk runs on EC2 behind the scenes, so:

  • Service Role β†’ allows Beanstalk to manage AWS resources.
  • Instance Profile β†’ gives EC2 instances permissions (like pulling logs or accessing S3).
  • Optional: Add an SSH Key if you want to log in to your EC2 instance later.

5️⃣ Extra configuration (optional for beginners)

  • VPC β†’ choose a private network.
  • Scaling β†’ set how many instances should run.
  • Monitoring β†’ keep track of health/logs.

6️⃣ Deploy πŸš€

Upload your zip β†’ Elastic Beanstalk provisions everything β†’ you get a live URL!

7️⃣ Celebrate πŸŽ‰

Your React app is now live on AWS!

(For budget reasons, I’ll keep it up only until a spending alert is triggered.)


πŸ“Œ What’s Next?

✨ This is just Part 1 of my 30+ AWS Lab Challenge.

I’ll be posting every lab breakdown here on DEV.to and also on LinkedIn.

πŸ‘‰ Follow along on my journey:

Stay tuned β€” next up, I’ll dive into another AWS service, explained step by step in simple English.


βœ… Source of inspiration: AWS Elastic Beanstalk Documentation

AWS #CloudComputing #DevOps #ElasticBeanstalk #LearningInPublic #AWSLabs

Top comments (0)