Extracting key pair creation logic from vpc creation.

[#42828011]