Security Groups
A security group acts as a virtual firewall to control incoming and outgoing traffic.
Inbound rules control the incoming traffic, and outbound rules control the outgoing traffic
When we launch an instance, we can specify one or more security groups else it uses the default security group
We can modify the rules for a security group at any time. New and modified rules are automatically applied.
When we launch an instance in a VPC, we must specify a security group that's created for that VPC. After launching an instance, we can change its security groups. Security groups are associated with network interfaces.
Lab
Launch EC2
Security Group
Inbound And Outbound Rules
Accessing the Website
User Data
https://github.com/jaspalsaini45/YouT...
Previous Video:
• Create EC2 Instance in AWS I Run Web Serv...