{"id":29416318,"url":"https://github.com/charlesmcmaponya/react-beanstalk-app","last_synced_at":"2026-05-05T18:35:07.728Z","repository":{"id":303617984,"uuid":"1016104572","full_name":"CharlesMCMaponya/React-beanstalk-app","owner":"CharlesMCMaponya","description":"Deploying a React App to AWS Elastic Beanstalk using Terraform","archived":false,"fork":false,"pushed_at":"2025-07-08T14:02:38.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T15:22:57.207Z","etag":null,"topics":["aws","cloud","deployment","devops","elastic-beanstalk","iac","react","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/CharlesMCMaponya.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-07-08T13:49:41.000Z","updated_at":"2025-07-08T14:09:15.000Z","dependencies_parsed_at":"2025-07-08T15:23:07.710Z","dependency_job_id":"f52ed2fa-33c1-4144-92a9-fb269c7c9f70","html_url":"https://github.com/CharlesMCMaponya/React-beanstalk-app","commit_stats":null,"previous_names":["charlesmcmaponya/react-beanstalk-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CharlesMCMaponya/React-beanstalk-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesMCMaponya%2FReact-beanstalk-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesMCMaponya%2FReact-beanstalk-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesMCMaponya%2FReact-beanstalk-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesMCMaponya%2FReact-beanstalk-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CharlesMCMaponya","download_url":"https://codeload.github.com/CharlesMCMaponya/React-beanstalk-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesMCMaponya%2FReact-beanstalk-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281361348,"owners_count":26487881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","cloud","deployment","devops","elastic-beanstalk","iac","react","terraform"],"created_at":"2025-07-11T19:02:47.785Z","updated_at":"2025-10-28T00:02:11.430Z","avatar_url":"https://github.com/CharlesMCMaponya.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Full-Stack React App Deployment on AWS with Terraform (Elastic Beanstalk)\n\nThis project demonstrates how to deploy a **React web application** using **AWS Elastic Beanstalk**  all provisioned via **Terraform**. It's a real world DevOps workflow combining Infrastructure as Code, automation, and cloud hosting.\n\n\u003e  This is part of a bigger journey where I’m building real infrastructure from scratch  from networking to deployment  using professional tools.\n\n---\n\n##  What Was Built\n\n| Layer         | Stack / Service                           |\n|---------------|--------------------------------------------|\n| Frontend      | React App                                  |\n| Deployment    | AWS Elastic Beanstalk                      |\n| Platform      | Node.js 20 on Amazon Linux 2023            |\n| IaC Tool      | Terraform                                  |\n| Region        | `us-east-1`                                |\n| Environment   | Single-instance Elastic Beanstalk          |\n\n---\n\n##  Architecture Overview\n\nLocal React App\n↓\nTerraform Provisions:\n- Beanstalk App + Env\n- IAM EC2 Role\n- Node.js platform (Elastic Beanstalk)\n↓\nAWS Elastic Beanstalk\n↓\nReact App Running in Public Environment\n\n---\n\n##  Tools \u0026 Services Used\n\n- **React** – Frontend application\n- **Terraform** – Automate AWS infrastructure\n- **Elastic Beanstalk** – Application deployment \u0026 environment management\n- **AWS IAM** – Role-based access control for EC2\n- **Git + GitHub** – Version control \u0026 project tracking\n\n---\n\n## 📁 Project Structure\nreact-beanstalk-app/\n├── app/ # React app source code\n├── terraform/ # Terraform IaC to create Elastic Beanstalk app/env\n└── README.md # Project story and documentation\n\n---\n\n## 🧠 Why I Built This\n\nAfter setting up my own custom VPC on AWS (see previous project), I wanted to go further and **deploy an actual app**. Instead of clicking around in the AWS Console, I chose Terraform to:\n\n- Automate infrastructure creation\n- Build production like deployment pipelines\n- Deepen my understanding of cloud native development\n\nThis is how engineers work in teams scriptable, reusable, and versioned.\n\n---\n\n##  Terraform Setup\n\nNavigate to the `terraform/` folder and run:\n\n```bash\nterraform init\nterraform apply\nWhen prompted, type yes to provision your environment.\n\nExpected output:\napplication_name = \"react-beanstalk-app\"\nbeanstalk_env_name = \"react-env\"\n\nHow to Deploy the React App\nAfter Terraform provisions the environment:\n\nGo to AWS Console → Elastic Beanstalk → Environments → react-env\n\nUpload your React app ZIP (production build from npm run build)\n\nWait for deployment → App will be live with a public URL\n\nClean Up (To Avoid Charges on Free Tier)\nOnce done:\nterraform destroy\nThis removes all created resources.\n\n👨‍💻 Author\nMosehla Charles Maponya\nCloud \u0026 DevOps Enthusiast\n \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesmcmaponya%2Freact-beanstalk-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlesmcmaponya%2Freact-beanstalk-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesmcmaponya%2Freact-beanstalk-app/lists"}