Speed up AWS PostgreSQL insertion via Python script
t2 classes are unsuitable for high work loads, by design.  Once you have used up all your CPU credits, performance is abysmal.  Again, by design.

Don't use t2 (or any t*) instances if you care about performance.

As far as I can tell, there is no way to monitor the CPU credits on RDS (the way you can on EC2)