An open API service indexing awesome lists of open source software.

https://github.com/mongoexpuser/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.
https://github.com/mongoexpuser/unepo-stack-on-aws-ec2-with-aws-sdk-js

aws aws-sdk bash ec2 javascript nodejs postgresql ubuntu

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.