{"id":28893730,"url":"https://github.com/shahnotes/aws-nodejs-ci-cd","last_synced_at":"2026-05-07T13:48:05.201Z","repository":{"id":300163116,"uuid":"1005364322","full_name":"shahnotes/aws-nodejs-ci-cd","owner":"shahnotes","description":"Automated CI/CD pipeline for Node.js Express apps on AWS EC2 using CodeDeploy. Includes full environment setup, PM2 process manager, and production-ready configurations.","archived":false,"fork":false,"pushed_at":"2025-06-20T06:32:40.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T22:11:36.181Z","etag":null,"topics":["aws","ci-cd","code-deploy","code-pipeline","nodejs"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shahnotes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-20T05:46:27.000Z","updated_at":"2025-06-20T06:34:32.000Z","dependencies_parsed_at":"2025-06-20T07:32:25.820Z","dependency_job_id":"266a4b77-8d40-491d-83aa-5437a51070c1","html_url":"https://github.com/shahnotes/aws-nodejs-ci-cd","commit_stats":null,"previous_names":["shahnotes/aws-nodejs-ci-cd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shahnotes/aws-nodejs-ci-cd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahnotes%2Faws-nodejs-ci-cd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahnotes%2Faws-nodejs-ci-cd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahnotes%2Faws-nodejs-ci-cd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahnotes%2Faws-nodejs-ci-cd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahnotes","download_url":"https://codeload.github.com/shahnotes/aws-nodejs-ci-cd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahnotes%2Faws-nodejs-ci-cd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32740917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","ci-cd","code-deploy","code-pipeline","nodejs"],"created_at":"2025-06-21T03:08:42.828Z","updated_at":"2026-05-07T13:48:05.196Z","avatar_url":"https://github.com/shahnotes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS EC2 Setup for Node.js Application with CodeDeploy\n\nThis script automates the setup of a Node.js application on an Ubuntu EC2 instance using AWS CodeDeploy.\n\n## 🔧 Step-by-Step Instructions\n\n### 1. Update and Clean System Packages\n\n```bash\nsudo apt update\nsudo apt upgrade\nsudo apt autoremove\nsudo apt autoclean\n```\n\n### 2. Install AWS CodeDeploy Agent\n\n```bash\nsudo apt install ruby-full\nsudo apt install wget\nwget https://aws-codedeploy-ap-south-1.s3.ap-south-1.amazonaws.com/latest/install\nchmod +x ./install\nsudo ./install auto\nsystemctl status codedeploy-agent\nsystemctl start codedeploy-agent\nsystemctl status codedeploy-agent\n```\n\n### 3. Install Node.js\n\n```bash\ncurl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -\nsudo apt install -y nodejs\nnode -v\n```\n\n### 4. Install PM2 Process Manager\n\n```bash\nnpm install -g pm2\n```\n\n### 5. Create Symlinks (Optional but useful for scripting)\n\n```bash\nsudo ln -s \"$(which node)\" /sbin/node\nsudo ln -s \"$(which npm)\" /sbin/npm\nsudo ln -s \"$(which pm2)\" /sbin/pm2\n```\n\n### 6. Clone and Set Up the Application\n\n```bash\nsudo chown -R ubuntu:ubuntu /mnt\ncd /mnt\ngit clone https://github.com/shahnotes/aws-nodejs-ci-cd\ncd aws-nodejs-ci-cd\ncp .env.prod .env\nnpm install --production\n```\n\n### 7. Run Node.js Application with PM2\n\n```bash\nsudo pm2 start app.js --name=nodejs-express-app\nsudo pm2 save\nsudo pm2 startup\n```\n\n---\n\n✅ **You're all set!** Your Node.js application is now running and managed by PM2, and the CodeDeploy agent is ready for deployment automation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahnotes%2Faws-nodejs-ci-cd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahnotes%2Faws-nodejs-ci-cd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahnotes%2Faws-nodejs-ci-cd/lists"}