Giter VIP home page Giter VIP logo

aws-ec2-setup-for-fastapi-and-ngrok-deployment's Introduction

How to Deploy FastAPI Application with AWS EC2 and Ngrok

This 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.

Steps on how to deploy application using the script

1. Fork this repository

2. Login to AWS, create a new AWS EC2 instance and make sure to allow outside traffic as shown in the screenshots below:

Screenshot (150) Screenshot (156)

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

Screenshot (163) Screenshot (164)

4. Connect to your instance and clone your forked repository, an example in my case:

git clone https://github.com/Nneji123/AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment.git

5. cd into your repository which is probably named 'AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment'. You can do that by running:

cd AWS-EC2-Setup-for-FastAPI-and-Ngrok-Deployment

6. Then run the setup.sh file to get your application up and running:

./fastapi-setup.sh

You can then view the application by going to your Public IP's location, an example in my case will be:

http://3.95.202.74:80/

aws-ec2-setup-for-fastapi-and-ngrok-deployment's People

Contributors

nancyamelia123 avatar nneji123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aws-ec2-setup-for-fastapi-and-ngrok-deployment's Issues

Can you make a Flask version?

I want to create a web application using AWS EC2 + Flask + ngrok, but I'm not a web application engineer, so I'm currently studying. I would appreciate it if you could also create a version of Flask if possible. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.