Creating and configuring security groups
In this recipe, we will learn how to create a security group from the VPC dashboard. Similar steps can be followed to create a security group from the EC2 dashboard. We can also create a security group while launching an EC2 instance.
Getting ready
To complete the steps within this recipe, we need the following configurations:
- A working AWS account is essential. I will be using the
awsseccb-sandbox-1account that we created in Chapter 1. However, I will not be using any features of the AWS Organizations or the IAM Identity Center. - We need to create a VPC and a public subnet under that. We can create a VPC and subnet by following the Creating a bare VPC and setting up public and private subnets recipe from this chapter.
How to do it...
We can create a security group from the VPC dashboard as follows:
- Go to the VPC dashboard.
- On the left sidebar under Security, click on Security groups.
- On the Security...