- Newest
- Most votes
- Most comments
Hi Jazz,
First of all, you should confirm if your VPC B has connectivity to VPC A, this can be done via either VPC Peering directly, or via a Transit Gateway.
After you have the network connectivity established between those 2 VPCs, you need to check both NACL and Security Group to see if the 3306 (MySQL) port is allowed.
For Security Group, its stateful, so your VPC A private subnet just need to allow inbound on 3306 from the VPC B IP address range, and VPC B should have outbound allowed to VPC A (by default this is allow all outbound traffic).
For NACL, its stateless by default this should be allow all inbound and outbound, but if you have configured rules, you need to make sure the following rules are in place:
- VPC A: allow 3306 inbound and ephemeral port (normally 1024-65535) outbound to and from VPC B
- VPC B: allow ephemeral port (normally 1024-65535) inbound and 3306 outbound to and from VPC A
Hope that helps.
To ensure that a new database user can connect to Aurora MySQL from another VPC using VPC endpoints:
- Verify VPC Endpoint Configuration: Ensure the endpoint service and endpoint are correctly set up.
- Adjust Security Groups: Update the Aurora security group and VPC endpoint security group to allow necessary traffic.
- Check Network ACLs: Ensure NACLs do not block traffic between the VPCs.
- Validate User Permissions: Confirm that the database user has permissions to connect from VPC B.
- Verify Endpoint Policy: Ensure the VPC endpoint policy permits the necessary actions.
- Test Connectivity: Confirm that the network path is open and working from VPC B.
hi, the entire connection is working when I use the default root, but it is not working when using the newly create user, but that user is working inside VPC A.
Relevant content
- asked 3 years ago
- asked 2 years ago

hi, i think the networking should be no problem as the default login is working to connect from the VPC B environment.
What error did you get when connecting with new user from VPC B? Is it connection time out or authentication failed?
The error is
MySQL: Access denied for user 'test'@'localhost' (using password: YES), but the same user can login from the VPC A