
Cloud
Learning Level
AWS provides multiple compute services for different workload types. Choosing the right service is key to building scalable and cost-effective applications.
By the end of this lesson, you'll understand:
Best For: Full server control, long-running applications
# Launch instance
aws ec2 run-instances \
--image-id ami-12345678 \
--instance-type t3.micro \
--key-name my-key-pairKey Characteristics:
Best For: Web apps, APIs, traditional deployments
# Deploy application
eb create my-app-env
eb deployKey Characteristics:
Best For: Event-driven, serverless, variable load
# Create function
aws lambda create-function \
--function-name myFunction \
--runtime nodejs18.x \
--role arn:aws:iam::ACCOUNT:role/lambda-role \
--handler index.handler \
--zip-file fileb://function.zipKey Characteristics:
Best For: Docker containers, microservices
# Create task definition
aws ecs register-task-definition \
--family my-app \
--container-definitions file://containers.jsonKey Characteristics:
| Service | Type | Best For | Scaling | Cost |
|---|---|---|---|---|
| EC2 | IaaS | Full control | Manual/Auto | Per hour |
| Beanstalk | PaaS | Web apps | Automatic | Per instance |
| Lambda | Serverless | Events | Auto to zero | Per execution |
| ECS | Containers | Microservices | Automatic | Per resource |
Explore EC2 for VMs, or dive into Lambda for serverless.
Resources
Ojasa Mirai
Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.
Learn Deep • Build Real • Verify Skills • Launch Forward