code for article pfeilbr/aws-app-runner-playground
learn AWS App Runner
Comments
- good service to get users “closer” to serverless on eases the onboarding to AWS for solutions
- less knobs/options to turn/get wrong
- it’s cheap, but not as cheap as lambda.
- public only endpoints for now
- similar goals and roadmap as GCP Cloud Run (AWS is playing catch-up)
- More choices for containers and potentially confusing for customers (container options menu is getting pretty big)
Notes
- prefer App Runner AWS managed container runtimes (e.g. Node and Python). Similar to lambda, ElasticBeanstalk, CloudFoundry, Heroku, etc.
- App Runner product manager said the managed container runtimes as based on elastic beanstalk. (source video - AWS App Runner Workshop)
- aws takes care of / not your responsibility
- load balanced
- autoscale
- no clusters
- App Runner configuration file (
apprunner.yaml
) - - connect directly to github
- config options
- health check config
- cpu, memory
- instance role
see Create a source code repository service for all options
- custom domain support
- Node and Python managed container runtimes to start. Planned to support and follow order of lambda supported runtimes.
- public endpoints only (as of 2021-05-18) - see roadmap
#1
,#2
for private endpoints and access to VPC resources.
Pricing
You are charged for the compute and memory resources used by your application. In addition, if you automate your deployments, you will pay a set monthly fee for each application that covers all automated deployments for that month. If you opt to deploy from source code, you will pay a build fee for the amount of time it takes App Runner to build a container from your source code.
Demo
# setup
mkdir hello-app-runner
touch apprunner.yaml
# install venv and deps
pipenv install
# run locally
pipenv run python app.py
# deploy
SERVICE_NAME="hello-app-runner-01"
aws apprunner create-service --service-name ${SERVICE_NAME} \
--source-configuration file://apprunner.yaml
Resources
- Introducing AWS App Runner
- Hello AWS App Runner - youtube
- AWS App Runner Workshop - youtube. good details on roadmap. aws tech pm is a part of it.
- Documentation | AWS App Runner
- aws-containers/apprunnerworkshop
- apprunner-roadmap - vote up issues important to your needs
- aws-containers/hello-app-runner
- AWS App Runner API Reference
- Pricing
Twitter • Reddit