3.8.3 Update the Amazon RDS Security Group
When you configure the new Amazon EC2 instance to access the Amazon RDS
database, the final step is to add the instance security group to the Amazon
RDS security group. This process is very similar to what you did earlier when
you added the Amazon Lightsail IP address range to the Amazon RDS security
group.
- Go to the details page for the Amazon EC2 instance and ensure your
new instance is selected.
- Click the ‘Description’ tab.
- Next to the ‘Security groups’, click your security group.
- Copy the ‘Group ID’ to your clipboard.
- Navigate to the Amazon RDS databases page.
- From the list of databases, click the name of the Amazon RDS database you
created earlier to access the database details screen.
- Ensure the ‘Connectivity’ tab is selected.
- In the ‘Connectivity’ section, click the name of the security group for
your RDS database.
- Click the ‘Inbound’ tab to access the rules that define which traffic is
allowed to reach the RDS database.
- Click ‘Edit’
- Click ‘Add Rule’ then configure:
- ‘Type:’ MYSQL//Aurora
- =CIDR, IP or Security Group:/ Paste in the value of the EC2 instance
security group you noted previously.
- Click ‘Save’
- Navigate to the IP address of your EC2 instance, and you should see the
todo application up and running.