Error while connecting database from aws postgresql 10.1

yes, want to migrate database from instance to RDS..