Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.46 KB

ElasticBeanstalk.md

File metadata and controls

66 lines (40 loc) · 1.46 KB

Sure, here is the guide in Markdown format:

AWS Elastic Beanstalk Lab with a Simple Node.js App

Step 1: Clone the Repository

Install node dependencies

npm install
npm run build
zip -r nextjs-app.zip ./ -x "node_modules/*" ".git/*"  

Step 2: Set Up AWS Elastic Beanstalk

Install the AWS Elastic Beanstalk CLI

Follow the instructions here to install the Elastic Beanstalk CLI.

Initialize Your Elastic Beanstalk Application

eb init
  • Follow the prompts to set up your application. Select your region, application name, and platform (Node.js).

Create an Elastic Beanstalk Environment

eb create --single
  • Follow the prompts to set up your environment. This will create and deploy your application to Elastic Beanstalk.

Deploy Your Application

eb deploy

This command packages your application and deploys it to the environment you created.

Step 3: Verify Your Deployment

Once the deployment is complete, you can find the URL for your application by running:

eb status

Open the provided URL in your browser to see your Node.js application running on AWS Elastic Beanstalk.

Step 4: Clean Up

To avoid incurring charges, you can terminate the environment and delete the application when you're done:

eb terminate
eb delete

This will delete the Elastic Beanstalk environment and the application.