Control inbound/outbound traffic to an AWS Resource using AWS Security Groups

Hi, I am Mubbashir. I specialize in developing highly scalable & distributed web apps. I help startups in developing their apps & ideas. Here I usually write about Microservices, DevOps, AWS and React
AWS Security group is like a virtual firewall within a [VPC] (https://aws.amazon.com/vpc/) that acts at the instance level and not at a subnet level. Security groups have a set of rules to allow/disallow incoming/outgoing traffic to an instance.
Creating a security group is a fairly simple task. From the EC2 Console, select "Security Groups" under the Network & Security section

Click 'Create security group'

Give any meaningful name and a description, enter in the ID of the VPC in which you want to create the security group

Click 'Add rule' within the Inbound rules section and add HTTP and HTTPS and set the source to 'Anywhere' in both

Leave the Outbound rules section as it is (unless you want to change something) and click 'Create security group'

Originally posted on: dev.to
Let's connect:
Linkedin: https://www.linkedin.com/in/mubbashir10/
Twitter: https://twitter.com/mubbashir100



