How to Restrict AWS RDS Access to Only Nomad Specific job

I’m wondering how to allow only Nomad jobs A and B to access AWS RDS, assuming jobs A, B, and C are all on one client.

Controlling access with a security group results in all three jobs (A, B, and C) being able to access RDS, which is an issue.

If you have any ideas, please share.