What are the AWS 'Security Groups'?
AWS is providing us many services, such as EC2, VPC. These services should be secure, and unwanted interactions with these infrastructures should be stopped. Many security breaches happened with the AWS infrastructure: one such instance is the Capital One breach.
Hence, AWS needs a mechanism to guard against such security breaches: Security Group. Security Group is an AWS Firewall solution, where the infrastructure will be allowed to be accessed only through specific IPs. It filters incoming and outgoing traffic at the TCP and IP layers via their respective ports and source/destination IP addresses.
How to create a Security Group?
1. Naviagte to EC2 service in
AWS console and select ‘Create Security Group’
2. Enter the name of
the security group. Add inbound and outbound rules. By default, outbound rules
to set to connect to all IPs. Similarly, I will set it to inbound rules. I am
doing this for a demo. But, you need to decide who can connect to your AWS resources from the outside world.
3.Click on ‘Create Security
Group and the Security Group will be created.