After having created a 'Federated Schema' to access a remote RDS instance (different AWS account but VPC Peered):
CREATE EXTERNAL SCHEMA federated_schema
FROM POSTGRES
DATABASE 'popstgres_db' SCHEMA 'public'
URI 'my.host.com'
IAM_ROLE 'arn:aws:iam::1223456789:role/MyRole'
SECRET_ARN 'arn:aws:secretsmanager:my-region-1:1223456789:secret:my/secret';
I try to test it with a simple Federated Query:
SELECT COUNT(*)
FROM federated_schema.my_table
But after some waiting I get the following error message:
error: timeout expired code: 2500
The error message doesn't really help as I already checked there is connection between the relative 2 VPCs hosting the relative services.
What is the problem here?