Ace Cloud Interviews
Home/AWS Tutorial/App Runner

AWS Compute

App Runner

Deploy containerized or source-based web apps directly from code or images

AWS App Runner is a fully managed service for deploying containerized web applications and APIs directly from source code or container images - without configuring load balancers, Auto Scaling groups, VPCs, or clusters. It is designed for teams who want to ship fast without deep AWS infrastructure knowledge.

How App Runner Works

App Runner abstracts the entire deployment stack. You point it at a source and it handles everything else:

  1. 1Source: container image from ECR, or source code in GitHub/Bitbucket. For source code, App Runner builds using a managed runtime (Node.js, Python, Java, .NET, PHP, Ruby, Go).
  2. 2Build (source only): App Runner runs your build commands in a managed build environment and produces a container image.
  3. 3Deploy: App Runner provisions Fargate-powered containers, fronts them with a load balancer, and assigns an HTTPS URL (automatically provisioned TLS).
  4. 4Scale: traffic-based automatic scaling. Scale to zero (no traffic = no cost) or set a minimum instance count to avoid cold starts.
  5. 5Observe: built-in CloudWatch metrics, X-Ray tracing, and log streaming.

Configuration and Networking

SettingOptions / Details
CPU1 vCPU or 2 vCPU
Memory2 GB, 3 GB, or 4 GB
PortThe port your app listens on (default 8080)
Environment variablesPlain text or Secrets Manager/SSM Parameter Store references
Deployment triggerManual, or automatic on image push (ECR) / code push (GitHub)
VPC ConnectorAttaches the service to a VPC so it can reach private RDS, ElastiCache, etc.
Custom domainMap your own domain with App Runner managing the ACM certificate
Instance roleIAM role granting the app access to other AWS services
💡

Without a VPC Connector, App Runner instances cannot reach resources in a private VPC (RDS, ElastiCache). Add a VPC Connector to enable private connectivity.

App Runner vs ECS Fargate vs Lambda

App RunnerECS FargateLambda
Setup complexityVery lowMediumLow
Custom networkingVia VPC ConnectorFull VPC controlVia VPC config
Max execution timeUnlimitedUnlimited15 minutes
Scale to zeroYes (with cold starts)No (min task count)Yes
Container supportYesYesYes (container images)
Use caseSimple web apps/APIsComplex microservicesEvent-driven functions
🎯

Interview Focus Points

  • 1When would you choose App Runner over ECS Fargate?
  • 2What is the role of a VPC Connector in App Runner?
  • 3How does App Runner handle auto-scaling and what are its limits?
  • 4Source-based vs image-based deployment - differences and tradeoffs