Create RDS Security group

Create a Security Group for a DB Instance in AWS

You can use a Security Group to control access to a private DB instance in the AWS environment. Below are the steps to create a Security Group for a DB instance in the VPC interface:

  1. In the VPC interface, select Security Groups.

  2. Choose Create Security Group to create a new Security Group for the private DB instance.

  3. Provide a name for the Security Group:

    • Security Group Name: Enter a name for the Security Group.
    • Description: Enter a description for the Security Group.

Create a VPC

  1. Select the VPC you have created to associate the Security Group with it.

  2. Configure Inbound rules to determine which sources are allowed to access the DB instance. For example:

    • Choose MYSQL/Aurora and port 3306.
    • Custom Source: Enter the ID of the Security Group of the Amazon EC2 instance you want to connect to the DB instance.

Create a VPC

  1. Once you have finished configuring, select Create Security Group to complete the process of creating a Security Group for the DB instance.

Create a VPC

Congratulations! You have successfully created a Security Group for a private DB instance in the AWS environment.

Note: It is not recommended to share Security Groups between DB instances and Amazon EC2 instances to ensure separate security and management for each resource.

Create a VPC