aws에 세팅한 환경을 local 에 연결하려고 test connectio 을 해보니
DBMS: MySQL (no ver.)
Case sensitivity: plain=mixed, delimited=exact
Connection timed out: connect.
에러가 났다.
security group 인바운드 규칙을 추가해주지 않아서 그런것.
RDS - Databases - 해당 db - connectivity&Security - VPC Security group - edit inbound rules - everywhere IP4, enerywhere IP6를 추가해준다.
ec2 instance connect 를 하니
Failed to connect to your instance
EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html.
Case sensitivity: plain=mixed, delimited=exact
Connection timed out: connect.
에러가 났다.
이 또한 security group의 인바운드 규칙 문제이다.
SSH everywhere ip4, everywhere ip6 를 추가하면 연결 된다.
갑자기 Failed to connect to your instance
EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html.
Case sensitivity: plain=mixed, delimited=exact
Connection timed out: connect.
에러가 났다.
security group - inbound 에 ssh 22 를 추가하면 된다는데 이미 추가되어 있다.
ssh13.209.1.56/29
를 추가로 해준다.
13.209.1.56/29는 서울 기준이다.