Issue Connecting EC2 Instance to RDS Instance via Management Console

0

I am currently facing an issue while trying to connect an EC2 instance to an RDS instance via the Management Console.

Here are the details of the setup:

EC2 Instance: The EC2 instance is located in the public subnet and has a public IP. Its security group allows outbound access to the RDS endpoint on port 3306.

RDS Instance: The RDS instance is in a private subnet within the same VPC as the EC2 instance. The necessary security group rules are configured to allow inbound access from the EC2 instance's security group on port 3306.

Connectivity Test: I have successfully tested the connectivity from the EC2 instance to the RDS endpoint using SQL port 3306, and it passed without any issues.

Despite these configurations, when I attempt to connect the EC2 instance to the RDS instance via the Management Console (Action -> Networking -> Connect to RDS instance), I encounter an error stating "The EC2 Instance cannot be found."

I have double-checked the VPC settings, security group rules, and NACL configurations, and everything appears to be in order. However, the error persists. I would greatly appreciate it if you could spare some time to assist me in resolving this issue. Please find the attached screenshot of the error message for your reference.

1 Answer
1

Its setting is an option to automatically create a security group for the connection between RDS and EC2.
In your case, the connection has already been confirmed, so there is no need to make that setting.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/option1-task3-connect-ec2-instance-to-rds-database.html

PS:
I also tried it on my AWS account and got the same error.
This suggests the possibility of a bug.
ec2

The method done from the RDS console is successful.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/ec2-rds-connect.html
rds

profile picture
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
profile picture
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions