Skip to content

Deploys Ubuntu, NodeJS, ExpressJS and PostgreSQL (UNEPO) Stack on AWS EC2 with AWS SDK for JavaScript/NodeJS V2.

License

Notifications You must be signed in to change notification settings

MongoExpUser/UNEPO-Stack-On-AWS-EC2-with-AWS-SDK-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNEPO-Stack-On-AWS-EC2-with-AWS-SDK-JS


Deploys Ubuntu, NodeJS, ExpressJS and PostgreSQL (UNEPO) Stack on AWS EC2 with AWS SDK for JavaScript/NodeJS V2.

The script deploys/creates or deletes the following specific resources and software:
  1. AWS EC2 instance(s) with Ubuntu 22.04 LTS OS

  2. Bash launch or start-up script (user data) for the installation of software, on the instance(s), including:

    • Additional Ubuntu OS Packages
    • NodeJS
    • ExpressJS Web Server Framework
    • Other Node.js Packages and
    • PostgreSQL

DEPLOYING STACK with the NodeJS script

To deploy the stack on AWS, follow these steps:

  1. Install NodeJS, aws-sdk (v2) module, and uuid module, assuming Ubuntu OS

    curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
    sudo apt-get install -y nodejs
    sudo npm install aws-sdk
    sudo npm install uuid

  2. Download or clone the following files, from this repo, into the current working directory (CWD):

    NodeJS script - index.js
    User data bash script (launch script) - user-data.sh
    JSON files - credentials.json and inputConfig.json

  3. Fill in relevant values in the credentials.json and inputConfig.json files.

  4. Then run the code, assuming sudo access:

    sudo node index.js

License

Copyright © 2015 - present. MongoExpUser

Licensed under the MIT license.

About

Deploys Ubuntu, NodeJS, ExpressJS and PostgreSQL (UNEPO) Stack on AWS EC2 with AWS SDK for JavaScript/NodeJS V2.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published