Day 4 deploys your containerized AI app to AWS. You will push your image to ECR and run it on App Runner — the simplest production-grade deployment on AWS.
Local container → Push to AWS ECR (Elastic Container Registry) → Run on AWS App Runner. No servers to manage, automatic scaling, SSL included.
# Install AWS CLI
brew install awscli # macOS
# or download from aws.amazon.com/cli
# Configure with your credentials
aws configure
# Enter: Access Key ID, Secret, Region (us-east-1), format (json)# Create ECR repository
aws ecr create-repository --repository-name my-ai-app --region us-east-1
# Get login token (replace ACCOUNT_ID and REGION)
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com
# Tag and push
docker tag my-ai-app:latest ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/my-ai-app:latest
docker push ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/my-ai-app:latest# In AWS Console:
# 1. Go to App Runner → Create service
# 2. Source: Container registry → Amazon ECR
# 3. Select your image URI
# 4. Port: 8000
# 5. Environment variables:
# ANTHROPIC_API_KEY = your_key
# 6. Deploy
# App Runner gives you a URL like:
# https://abc123.us-east-1.awsapprunner.com