Big Data ML Infra on AWS - 5. EC2 Security Group
AWS EC2 Security Group Setup
What is a Security Group?
- Virtual Firewall: Controls inbound and outbound traffic to EC2 instances
- Lives outside of EC2, can be applied to multiple EC2 instances
Security Group Creation Steps
1. Access Security Groups
- Sign in to AWS Console
- Go to EC2 service
- Click Security Groups in left sidebar
2. Configure rules
As creating an EC2 instance, its security group is created accordingly. This security group can be found in the above page. I added followings at inbound rules to use jupyter notbook:
- Port: 8888
- Protocol: Custom TCP
- Source: My IP
Tip
Common Port Configurations
You can create a security group manually at the Security Group console
My customization of Inbound rules:
- TCP Protocol with 0.0.0.0/0 as Source and Port range 22 (SSH), 80 (HTTP), 443 (HTTPS)
- TCP Protocol with My IP as Source and Port range 8888 (Jupyter browser)