Now that we have created the security groups, we need to modify the RDS instance to attach these security groups.
From the dashboard of RDS, navigate to letspolldb and click on modify. We can then modify the instance details. The following things needs to be done:
- Attach the security group named letspoll-database-security-group that we created in the previous section
- Disable the public accessibility of the instance by selecting the No radio button
- Click on Continue
- Select Apply immediately
- Click on Modify
The following screenshot shows these details: