Lesson 02 β Why Amazon EC2?
Learning Path
βοΈ Phase 2 β AWS Cloud Security
π Module 05 β Amazon EC2 Security
π― Lesson Objective
Section titled βπ― Lesson ObjectiveβBy the end of this lesson, you will be able to:
- Understand what Amazon EC2 is.
- Explain why businesses use Amazon EC2.
- Identify common enterprise workloads running on EC2.
- Understand the advantages of cloud-based virtual servers.
- Recognise the Cloud Security Engineerβs role in protecting EC2 workloads.
π Lesson Information
Estimated Time: 45 Minutes
Difficulty: Beginner
Prerequisites: Lesson 01 β Module Overview
Hands-on Lab: No
πΌ Business Value
Section titled βπΌ Business ValueβImagine CloudNova Technologies launches a new online learning platform.
Students expect:
- Fast website performance
- Reliable video streaming
- Secure online payments
- 24Γ7 availability
- No downtime during examinations
To deliver these services, CloudNova needs reliable compute resources.
This is where Amazon EC2 (Elastic Compute Cloud) becomes essential.
π’ CloudNova Scenario
Section titled βπ’ CloudNova ScenarioβCloudNova plans to host the following applications in AWS:
- Student Learning Portal
- Instructor Dashboard
- Learning APIs
- Authentication Service
- Internal HR Portal
- CI/CD Server
- Monitoring Server
- AI Recommendation Engine
Instead of purchasing physical servers, CloudNova deploys Amazon EC2 instances.
As the Cloud Security Engineer, your responsibility is to ensure these servers remain secure, available and compliant with company security standards.
π€ What is Amazon EC2?
Section titled βπ€ What is Amazon EC2?βAmazon EC2 (Elastic Compute Cloud) is AWSβs virtual server service.
Instead of buying physical hardware, organisations create virtual machines in minutes.
These virtual machines are called EC2 Instances.
Each instance can run:
- Linux
- Windows Server
- Commercial software
- Custom business applications
- Containers
- Development tools
Think of an EC2 instance as a computer running inside AWS that you control.
π’ Traditional Data Centre vs AWS EC2
Section titled βπ’ Traditional Data Centre vs AWS EC2βTraditional Infrastructure
Section titled βTraditional InfrastructureβPurchase Server
β
Install Hardware
β
Configure Network
β
Install Operating System
β
Deploy Applications
β
Maintain HardwareProvisioning may take days or weeks.
Amazon EC2
Section titled βAmazon EC2βAWS Console
β
Launch EC2 Instance
β
Choose Operating System
β
Deploy Application
β
Server ReadyProvisioning typically takes only a few minutes.
π Why Do Enterprises Use Amazon EC2?
Section titled βπ Why Do Enterprises Use Amazon EC2?βAmazon EC2 provides:
- On-demand compute capacity
- High availability
- Global deployment
- Flexible pricing
- Auto Scaling support
- Enterprise-grade security
- Integration with other AWS services
This allows organisations to deploy applications quickly without investing in physical infrastructure.
π Real-World Enterprise Workloads
Section titled βπ Real-World Enterprise WorkloadsβAmazon EC2 supports many types of workloads.
Web Applications
Section titled βWeb ApplicationsβStudent Portal
Company Website
Corporate IntranetAPI Servers
Section titled βAPI ServersβREST APIs
Microservices
Backend ServicesDatabases
Section titled βDatabasesβSelf-managed PostgreSQL
MySQL
MongoDB
SQL ServerCI/CD Platforms
Section titled βCI/CD PlatformsβJenkins
GitLab Runner
Build ServersSecurity Platforms
Section titled βSecurity PlatformsβSIEM
Vulnerability Scanners
Security Monitoring
Threat DetectionArtificial Intelligence
Section titled βArtificial IntelligenceβMachine Learning
Model Training
Inference Servers
GPU Workloadsπ EC2 in the CloudNova Architecture
Section titled βπ EC2 in the CloudNova Architectureβ Internet β Internet Gateway β Application Load Balancer β ββββββββββββββββ΄βββββββββββββββ β β Private EC2 Private EC2 Student Portal Learning APIs β β ββββββββββββββββ¬βββββββββββββββ β Amazon RDS
ββββββββββββββββββββββββββββββββββββββββββ
Supporting Services
IAM Roles
CloudWatch
Systems Manager
CloudTrail
AWS BackupNotice that the EC2 instances are deployed in Private Subnets, reducing direct exposure to the Internet.
π° Why Cloud is Better Than Traditional Servers
Section titled βπ° Why Cloud is Better Than Traditional ServersβTraditional Servers
Section titled βTraditional Serversβ- Large upfront investment
- Hardware maintenance
- Power and cooling costs
- Slow deployment
- Limited scalability
Amazon EC2
Section titled βAmazon EC2β- Pay only for what you use.
- Launch servers in minutes.
- Scale up or down as demand changes.
- Choose from many instance types.
- Deploy globally with ease.
- Integrate with AWS security services.
π Why EC2 Security Matters
Section titled βπ Why EC2 Security MattersβAn EC2 instance often contains:
- Business applications
- Customer information
- Configuration files
- API keys
- Application logs
- Internal documentation
If an attacker compromises an EC2 instance, they may gain access to sensitive business resources.
Cloud Security Engineers help reduce this risk by implementing secure configurations and continuous monitoring.
π¨βπ» Responsibilities of a Cloud Security Engineer
Section titled βπ¨βπ» Responsibilities of a Cloud Security EngineerβAt CloudNova, you are responsible for:
- Deploying secure EC2 instances.
- Applying the Principle of Least Privilege.
- Encrypting storage.
- Managing operating system updates.
- Monitoring security events.
- Performing vulnerability remediation.
- Investigating suspicious activity.
- Supporting compliance requirements.
βοΈ AWS Services That Work with EC2
Section titled ββοΈ AWS Services That Work with EC2β| AWS Service | Purpose |
|---|---|
| IAM | Secure access management |
| Amazon VPC | Network isolation |
| Security Groups | Instance firewall |
| Amazon EBS | Persistent storage |
| AWS Systems Manager | Secure administration |
| CloudWatch | Monitoring and alerts |
| CloudTrail | Audit logging |
| AWS Backup | Backup management |
| KMS | Encryption key management |
| AWS Config | Configuration compliance |
Together, these services create a secure and manageable compute environment.
π EC2 Lifecycle
Section titled βπ EC2 LifecycleβEvery EC2 instance follows a lifecycle.
Launch
β
Configure
β
Secure
β
Monitor
β
Patch
β
Backup
β
Scale
β
TerminateCloud Security Engineers are involved throughout this lifecycle.
π’ Enterprise Best Practices
Section titled βπ’ Enterprise Best PracticesβCloudNova follows these principles when deploying EC2:
- Deploy production instances in Private Subnets.
- Use IAM Roles instead of storing access keys.
- Encrypt all EBS volumes.
- Restrict network access using Security Groups.
- Manage instances using AWS Systems Manager.
- Enable monitoring and logging.
- Apply security updates regularly.
- Tag resources consistently.
- Review configurations on a regular basis.
π« Common Mistakes
Section titled βπ« Common Mistakesββ Deploying production servers in Public Subnets.
β Leaving SSH open to the Internet.
β Storing AWS Access Keys on EC2 instances.
β Disabling operating system updates.
β Launching unencrypted EBS volumes.
β Ignoring monitoring and logging.
β Using default security configurations without review.
π§ Think Like a Cloud Security Engineer
Section titled βπ§ Think Like a Cloud Security EngineerβBefore launching an EC2 instance, ask yourself:
- Does this server really need Internet access?
- Who should be allowed to connect?
- Is storage encrypted?
- Are backups enabled?
- Is monitoring configured?
- How will administrators securely access the server?
- What happens if this server is compromised?
These questions help ensure security is considered from the beginning, not added later.
π Knowledge Check
Section titled βπ Knowledge Checkβ- What is Amazon EC2?
- Why do organisations prefer Amazon EC2 over physical servers?
- Name five workloads commonly hosted on EC2.
- Why should production EC2 instances usually be placed in Private Subnets?
- What responsibilities does a Cloud Security Engineer have when managing EC2?
- Name three AWS services commonly integrated with EC2.
- Why is monitoring important for EC2 instances?
- Why is encrypting storage considered a security best practice?
- What are some risks of exposing an EC2 instance directly to the Internet?
- Which stage of the EC2 lifecycle includes applying operating system updates?
π‘ Key Takeaways
Section titled βπ‘ Key TakeawaysβAfter completing this lesson, you should understand:
- Amazon EC2 is AWSβs primary compute service for running virtual servers.
- Enterprises use EC2 to host business-critical applications, APIs, databases and supporting services.
- EC2 instances should be deployed with security in mind from the beginning, including network isolation, encryption and monitoring.
- Cloud Security Engineers are responsible for protecting compute workloads throughout their lifecycle.
- Amazon EC2 integrates with many AWS security and management services to build secure, scalable and production-ready environments.
π Next Lesson
Section titled βπ Next Lessonββ‘οΈ Lesson 03 β Amazon EC2 Fundamentals