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.
- Host: GitHub
- URL: https://github.com/mongoexpuser/unered-stack-on-aws-lightsail-with-aws-sdk-js
- Owner: MongoExpUser
- License: mit
- Created: 2022-12-21T21:00:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T00:47:45.000Z (about 3 years ago)
- Last Synced: 2025-01-26T19:37:29.411Z (over 1 year ago)
- Topics: aws, aws-sdk, bash, javascript, lightsail, nodejs, ubuntu
- Language: Shell
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.