In the VPC interface:
Configure the Security Group:
Configure Inbound rules:
Check Outbound rules and select Create security group
Complete the creation of the security group for the server located in the public subnet
In the VPC interface:
Configure the Security Group:
Configure Inbound rules:
Select Add rule to add a new rule:
Select Create security group
Two Security Groups have been created for servers located in the public and private subnets: