p.s. the RDS Db instance is also in the same datacenter as my EC2 which I guess reduces the risk of packet sniffers(?) but it would be better to have it secure all the way.
Sorry, I understand it’s handled by MyDAC, but I do not know how to access the MyDAC connection component through the ConnectionManager, once I can get a handle to the TMyConnection component, I should be fine from there.
procedure TServerDataModule.ConnectionManagerConnectionCreated(Sender: TDAConnectionManager;
const Connection: IDAConnection);
var
conn: TMyConnection;
coa: IDAConnectionObjectAccess;
begin
if Supports(Connection, IDAConnectionObjectAccess, coa) then begin
conn := TMyConnection(coa.ConnectionObject);
..
end;
end;