test(ec2): make Ec2IntegrationTest idempotent across repeated runs in one JVM (#2387)