https://github.com/anuj-thakur-513/deploy-nodejs-cli
a CLI tool to deploy node.js projects to AWS EC2 (mentioned EC2 instance or create a new one)
https://github.com/anuj-thakur-513/deploy-nodejs-cli
aws aws-ec2 cli-deployment deplo nodejs
Last synced: 3 months ago
JSON representation
a CLI tool to deploy node.js projects to AWS EC2 (mentioned EC2 instance or create a new one)
- Host: GitHub
- URL: https://github.com/anuj-thakur-513/deploy-nodejs-cli
- Owner: anuj-thakur-513
- Created: 2024-11-01T14:19:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T13:11:41.000Z (6 months ago)
- Last Synced: 2025-01-15T13:07:01.595Z (4 months ago)
- Topics: aws, aws-ec2, cli-deployment, deplo, nodejs
- Language: JavaScript
- Homepage:
- Size: 7.62 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-deploy-nodejs
A CLI tool which allows you to directly deploy your personal projects to an EC2 instance. Either create a new instance or pass the instance-id to deploy on an already existing instance.
Steps to use:
- Create an IAM User with following permissions (generate an access key for this user):
- AmazonEC2FullAccess
- AmazonSSMFullAccess
- AmazonSSMManagedInstanceCore
- AmazonIAMFullAccess- Create an IAM Profile with following permissions:
- AmazonEC2FullAccess
- AmazonSSMFullAccess
- AmazonSSMManagedInstanceCore
- AmazonEC2RoleforSSM- If you want to host on an already existing instance, attach the IAM profile to that instance otherwise nothing required
- Create a Security group which exposes the desired ports in the inbound rules or just expose the ports that you want to expose
- Replace ```.env.sample``` with ```.env``` and add all the values
- ```npm install```
- ```npm i -g .```
- ```aws-deploy-nodejs --help```## Command Use

## Demo Video
https://github.com/user-attachments/assets/e1cabe48-52f3-4bf6-8c10-0e3b76012030## Contributions
- Fork the repo and clone it locally
- Setup the ```.env``` file and install the command globally
- Create a new branch for the feature you're going to add
- Push your changes and raise a PR