{"id":20106838,"url":"https://github.com/nneji123/aws-ec2-setup-for-fastapi-and-ngrok-deployment","last_synced_at":"2025-05-06T09:32:12.056Z","repository":{"id":44391847,"uuid":"512421536","full_name":"Nneji123/AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment","owner":"Nneji123","description":"A shell script to setup an AWS EC2 instance that can be used to deploy a FastAPI application using Ngrok ","archived":false,"fork":false,"pushed_at":"2023-02-07T18:48:06.000Z","size":25,"stargazers_count":10,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T21:57:10.275Z","etag":null,"topics":["aws","aws-ec2","deployment","fastapi","fastapi-template","git","ngrok"],"latest_commit_sha":null,"homepage":"http://3.95.202.74/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nneji123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-07-10T11:50:56.000Z","updated_at":"2025-02-19T18:12:27.000Z","dependencies_parsed_at":"2024-11-13T17:55:00.487Z","dependency_job_id":"7fbfa3f8-ab99-4d19-8600-9a5e7271d9cd","html_url":"https://github.com/Nneji123/AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nneji123%2FAWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nneji123%2FAWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nneji123%2FAWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nneji123%2FAWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nneji123","download_url":"https://codeload.github.com/Nneji123/AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252657355,"owners_count":21783803,"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","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","aws-ec2","deployment","fastapi","fastapi-template","git","ngrok"],"created_at":"2024-11-13T17:54:57.224Z","updated_at":"2025-05-06T09:32:11.776Z","avatar_url":"https://github.com/Nneji123.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Deploy FastAPI Application with AWS EC2 and Ngrok\nThis repository contains a shell script and an example of a FastAPI application. The shell script is used to deploy the application on the AWS EC2 instance and expose the IP address so that the application can be seen on the internet.\n\n## Steps on how to deploy application using the script\n### 1. Fork this repository\n### 2. Login to AWS, create a new AWS EC2 instance and make sure to allow outside traffic as shown in the screenshots below:\n![Screenshot (150)](https://user-images.githubusercontent.com/101701760/178163373-e4bb2c92-0f47-4a22-9556-dfc470fd7e8a.png)\n![Screenshot (156)](https://user-images.githubusercontent.com/101701760/178163392-3c9fc8ec-e58a-420d-a6bb-2885215d8105.png)\n### 3. When the instance has been launched, copy the Public IP address of your instance and paste it in the 'fastapi_setup' file of your cloned repository as shown below \n![Screenshot (163)](https://user-images.githubusercontent.com/101701760/178163457-2e156379-b542-4d24-aebf-e202dd44ae2c.png)\n![Screenshot (164)](https://user-images.githubusercontent.com/101701760/178163536-918818ee-563d-4b0d-a5ec-5c265a75b2b4.png)\n### 4. Connect to your instance and clone your forked repository, an example in my case:\n```bash\ngit clone https://github.com/Nneji123/AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment.git\n```\n### 5. cd into your repository which is probably named 'AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment'. You can do that by running:\n```bash\ncd AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment\n```\n### 6. Then run the setup.sh file to get your application up and running:\n```bash\n./fastapi-setup.sh\n```\n### You can then view the application by going to your Public IP's location, an example in my case will be:\nhttp://3.95.202.74:80/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnneji123%2Faws-ec2-setup-for-fastapi-and-ngrok-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnneji123%2Faws-ec2-setup-for-fastapi-and-ngrok-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnneji123%2Faws-ec2-setup-for-fastapi-and-ngrok-deployment/lists"}