https://github.com/robmarkcole/aws-app-runner-demo
https://github.com/robmarkcole/aws-app-runner-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/robmarkcole/aws-app-runner-demo
- Owner: robmarkcole
- Created: 2021-07-12T06:42:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-12T06:43:20.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T00:07:45.510Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# app-runner-demo
Demo application for AWS App Runner using [starlette](https://www.starlette.io/) following example [hello-app-runner](https://github.com/aws-containers/hello-app-runner). Can be used to host ML models using [fastai2-Starlette](https://github.com/muellerzr/fastai2-Starlette). App Runner is not yet available in London region so apps run in Ireland region.
- https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html and https://github.com/aws-containers/hello-app-runner
- two routes to deplolment (a) code (b) docker image on ECR
## Docker
```
docker build -t app-runner-demo .
docker run -p 8000:8000 app-runner-demo:latest
```
## Dev
* `python3 -m venv venv`
* `source venv/bin/activate`
* `pip3 install -r requirements.txt`
* `python3 app.py`
## Deployment
Deploying from github repo using the `apprunner.yaml` file is working OK.
Using deployment approach (b) using ECR, getting error: `Error in assuming access role arn:aws:iam::118655806378:role/service-role/AppRunnerECRAccessRole`