AWS App Runner

2 min read aws, containers

Written in 2021. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in 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


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

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.