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개 답변
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
전문가
답변함 10달 전
profile picture
전문가
검토됨 10달 전
profile picture
전문가
검토됨 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠