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

https://github.com/mongoexpuser/unered-stack-on-aws-lightsail-with-aws-sdk-js

Deploys Ubuntu, NodeJS, ExpressJS and Redis-Stack (UNERED) Stack on AWS Lightsail with AWS SDK for JavaScript/NodeJS V2.
https://github.com/mongoexpuser/unered-stack-on-aws-lightsail-with-aws-sdk-js

aws aws-sdk bash javascript lightsail nodejs ubuntu

Last synced: 2 months ago
JSON representation

Deploys Ubuntu, NodeJS, ExpressJS and Redis-Stack (UNERED) Stack on AWS Lightsail with AWS SDK for JavaScript/NodeJS V2.

Awesome Lists containing this project

README

          

# UNERED-Stack-On-AWS-Lightsail-with-AWS-SDK-JS




Deploys Ubuntu, NodeJS, ExpressJS and Redis-Stack (UNEREDS) Stack on AWS Lightsail with AWS SDK for JavaScript/NodeJS V2.




The script deploys/creates or deletes the following specific resources and software:

1) AWS Lightsail instance(s) with Ubuntu 20.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

- Redis-Stack

## DEPLOYING STACK with the NodeJS script

### To deploy the stack on ```AWS```, follow these steps:

1) #### Install NodeJS and aws-sdk (v2) 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

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.