1. Create VPC, Subnets, Route tables
- Create VPC
- Create Two EC2
- Use your VPC, Public Subnet, Security Group and add User-Data by using User-Data's information
Click
Launch InstancesCreate for Second Lab Server too
2. Create an application load balancer for EC2
- Click
Load Balancers
- Click
Create load balancer
- Click
Createof Application Load Balancer
- Write ALB Name
Select your vpc and choose public subnets and security group
Click
Create target group
- Write Name and click
Next
- Click both EC2 and
Include as pending below
- Click
Create target group
- Back to previous tab and choose your target group
- Click
Create load balancer
3. Implement the Web Application Firewall (WAF)
Go to
WAFfrom AWS Management ConsoleClick
Create web ACL
- Choose
Singaporeat Region and write name
- Click
Add AWS resources
- Select
Application Load BalancerandLabLBthen ClickAdd
- Click
Next
- Click
Add rulesandAdd managed rule groups
Click
AWS managed rule groupsSelect
Core rule setandSQL databaseatFree rule groupsClick
Add rules
- Click
Next
- Click
Next
- Click
Next
- Click
Create web ACL
Status: Complete ✅
Congratulations on successfully completing this.
Related Resources
- Lab Repository: AWS Learning Labs
- Technical Blog: Whispering Cloud Insights
- DEV Community: Thu Kha Kyawe





























Top comments (0)