Modernization and Other Useful AWS Services: Elastic Beanstalk, Amplify, Lightsail, Batch, Containers Path and Service Selection Cheat Sheet
Modernization Paths
text
Monolith on servers
ββ Rehost β same app on EC2 (fast, low gain)
ββ Replatformβ Elastic Beanstalk / RDS / ElastiCache (moderate gain)
ββ Containerize β ECS/EKS/Fargate (portable, scalable)
ββ Refactor β microservices + serverless + managed data stores (highest gain)
The Strangler Fig Pattern
Replace a big monolith piece by piece. Put a routing layer (API Gateway, ALB or CloudFront) in front. New features and migrated modules are served by new services, while the rest still goes to the old app. Over time the old system shrinks until it can be switched off.
text
Users ββΊ ALB / API Gateway (router)
ββ /orders/* β new Order service (Lambda/ECS + DynamoDB)
ββ /catalog/* β new Catalog service
ββ everything else β legacy monolith on EC2 (shrinking)
- Lower risk than a big-bang rewrite
- Each step delivers value and can be rolled back by changing a route
- Use events (EventBridge/SQS) and change data capture to keep old and new data in sync
- AWS Migration Hub Refactor Spaces can help manage this routing
AWS Elastic Beanstalk
Elastic Beanstalk is a PaaS: upload your code (Java, .NET, Node.js, Python, PHP, Ruby, Go, Docker) and Beanstalk creates and manages EC2, ALB, Auto Scaling, health monitoring and deployments. You keep control of the underlying resources.
| Concept | Meaning |
| Application, environment, version | An application has environments (dev, prod) running chosen versions |
| Web server environment | Serves HTTP requests behind an ELB |
| Worker environment | Pulls jobs from an SQS queue |
**.ebextensions / platform hooks** | Customize packages, files and commands |
| Managed updates | Platform patching on a schedule |
| Deployment policy | Behavior | Downtime | Rollback |
| All at once | Deploy to every instance at once | Yes (brief) | Redeploy |
| Rolling | In batches, capacity reduced during the update | No, but reduced capacity | Redeploy |
| Rolling with additional batch | Launch a new batch first so capacity is kept | No | Redeploy |
| Immutable | Launch a new set of instances in a temporary ASG, then swap | No | Fast (terminate the new ones) |
| Traffic splitting | Canary: send a percentage to the new version | No | Fast |
| Blue/green | Create a second environment and swap CNAMEs | No | Instant (swap back) |
bash
eb init shop --platform python-3.12 --region ap-south-1
eb create shop-prod --elb-type application --instance-types t4g.small --min-instances 2 --max-instances 6
eb deploy
eb swap shop-blue --destination_name shop-green
eb terminate shop-test
When to use Beanstalk: Developers want to deploy code without learning all of AWS, a classic web app, quick migration of a monolith. For container-first, serverless-first or large microservice platforms, ECS/EKS/Lambda fit better.
AWS Amplify and Lightsail
| Service | What it is | Use for |
| AWS Amplify | Hosting and tooling for web and mobile apps: Git-based CI/CD, hosting (CloudFront + S3), auth, API, storage, functions | Front-end teams who want a quick full-stack app (React, Next.js, Vue, Flutter, iOS, Android) |
| Amazon Lightsail | Simple, predictable-price virtual servers, containers, databases, load balancers, CDN, DNS | Small websites, blogs (WordPress), dev/test, beginners; can peer with a VPC |
| AWS App Runner | Run containers or source code with auto scaling, minimal setup | Simple web apps and APIs |
AWS Batch
- Run batch computing jobs (thousands or millions) on managed EC2, Spot or Fargate capacity
- Concepts: job definition, job queue, compute environment. Batch provisions the right amount and scales to zero
- Use for simulations, rendering, genomics, risk calculations, ETL
- Compare: Lambda for short event tasks (15 minutes max); Batch for long, heavy, containerized jobs; Step Functions to orchestrate
More Services You Should Recognize
| Area | Service | Purpose |
| Email | Amazon SES | Send and receive email at scale (transactional and marketing) |
| Messaging to users | Amazon Pinpoint / End User Messaging, SNS | SMS, push, email campaigns |
| Desktops | Amazon WorkSpaces, AppStream 2.0 | Virtual desktops, stream desktop applications through a browser |
| Contact center | Amazon Connect | Cloud call center |
| IoT | AWS IoT Core, IoT Greengrass | Connect devices (MQTT), run code on devices, rules to AWS services |
| Machine learning | Amazon SageMaker AI | Build, train and deploy custom ML models |
| Generative AI | Amazon Bedrock | Use foundation models through an API, build assistants and agents, guardrails, knowledge bases |
| AI services | Rekognition, Textract, Transcribe, Translate, Polly, Comprehend, Lex, Kendra | Ready AI: images, documents, speech, text, chat bots, search |
| Developer tools | CodeCommit status: check availability, CodeBuild, CodePipeline, CodeDeploy, CodeArtifact, Cloud9 alternatives | CI/CD on AWS (many teams also use GitHub/GitLab/Jenkins) |
| Business apps | WorkDocs / WorkMail (check status), Amazon Q Business | Productivity and AI assistants |
| Media | Elemental MediaConvert, MediaLive, IVS | Video processing and streaming |
| Hybrid | Outposts, Local Zones, Wavelength, Storage Gateway | AWS on premises or at the edge |
| Migration and transfer | DMS, MGN, DataSync, Snow, Transfer Family | Covered in earlier lessons |
| Blockchain / ledger | Managed Blockchain (check status) | Specialist use. Services change, always check current availability |
Services change AWS adds, renames and retires services. Before building on a lesser-known service, check its current status and availability in your Region on the AWS site.
Service Selection Cheat Sheet
| Need | Go-to service |
| Virtual server | EC2 |
| Run code on events, no servers | Lambda |
| Run containers, least ops | ECS on Fargate |
| Kubernetes | EKS |
| Simple code deployment (PaaS) | Elastic Beanstalk |
| Object storage | S3 |
| Block disk for EC2 | EBS |
| Shared Linux files | EFS |
| Windows file shares | FSx for Windows |
| Relational database | RDS / Aurora |
| Key-value/NoSQL, serverless | DynamoDB |
| Cache | ElastiCache |
| Data warehouse | Redshift |
| SQL on S3 | Athena |
| ETL | Glue |
| Streaming ingest | Kinesis / MSK |
| Queue | SQS |
| Pub/sub | SNS |
| Event routing and schedules | EventBridge |
| Workflow orchestration | Step Functions |
| API front door | API Gateway |
| User sign-in for apps | Cognito |
| Staff SSO | IAM Identity Center |
| DNS | Route 53 |
| CDN | CloudFront |
| Static anycast IP, fast failover | Global Accelerator |
| Private network | VPC |
| Hybrid private link | Direct Connect (+ VPN backup) |
| Many VPCs hub | Transit Gateway |
| Encryption keys | KMS |
| Secrets with rotation | Secrets Manager |
| Web firewall | WAF |
| DDoS | Shield |
| Threat detection | GuardDuty |
| Audit of API calls | CloudTrail |
| Config compliance | Config |
| Metrics and logs | CloudWatch |
| Infrastructure as code | CloudFormation / CDK |
| Backups | AWS Backup |
| Disaster recovery of servers | Elastic Disaster Recovery |
| Multi-account governance | Organizations + Control Tower |
| Cost tracking | Cost Explorer + Budgets |
Practice Tasks
- Deploy a sample app to Elastic Beanstalk and perform a blue/green swap
- Choose the right Beanstalk deployment policy for a payment app (no downtime and fast rollback)
- Draw a strangler fig plan for a monolith with three modules
- Run a small AWS Batch job on Fargate Spot
- Without looking, cover the right column of the cheat sheet and answer for 20 rows
Conclusion
Modernize step by step (strangler fig), use Elastic Beanstalk for simple PaaS deployments with immutable or blue/green policies, Amplify and Lightsail for simple front-end and small apps, Batch for heavy jobs, and know the supporting services. Memorize the service selection cheat sheet and always check current availability of newer services.
Quick Summary: modernization paths; strangler fig; Beanstalk deployment policies; Amplify/Lightsail/App Runner; Batch; other services table; service cheat sheet.