Deploying a web application on AWS

KartikKartik
1 min read

Recently, I embarked on a journey to deploy a web application on Amazon Web Services (AWS), and I'm excited to share the process with you. This blog post will guide you through the steps I took to get my application up and running on AWS.

Key Steps:

  1. Local Testing:

    • Clone the repository.

    • Set up environment variables in a .env file.

    • Install dependencies and start the project using npm.

  2. AWS EC2 Setup:

    • Create an IAM user with admin permissions.

    • Launch an EC2 instance using an Ubuntu image and a t2.micro instance type.

    • Connect to the instance using SSH.

    • Update packages and install Git, Node.js, and npm.

  3. Deployment on AWS:

    • Clone the repository on the remote VM.

    • Set up environment variables.

    • Assign an Elastic IP to the EC2 instance.

    • Install dependencies and start the project.

    • Update security group inbound rules to allow traffic on the specified port.

The project is then successfully deployed on AWS.๐ŸŽ‰

For an in-depth learning experience and detailed steps, refer to my GitHub repository.

Happy deploying! ๐Ÿš€


Feel free to leave any comments or questions below, and I'll be happy to help you with your deployment journey!

0
Subscribe to my newsletter

Read articles from Kartik directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kartik
Kartik