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.
- Host: GitHub
- URL: https://github.com/mongoexpuser/unepo-stack-on-aws-ec2-with-aws-sdk-js
- Owner: MongoExpUser
- License: mit
- Created: 2022-06-18T18:36:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T19:57:57.000Z (almost 3 years ago)
- Last Synced: 2026-03-28T01:30:13.365Z (2 months ago)
- Topics: aws, aws-sdk, bash, ec2, javascript, nodejs, postgresql, ubuntu
- Language: Shell
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.