ImportOrReturnExistingKeypair importer = new ImportOrReturnExistingKeypair(
ec2Client);
RegionNameAndPublicKeyMaterial regionNameAndKey = new RegionNameAndPublicKeyMaterial(
region, keyPairName, publicKey);
KeyPair keyPair = importer.apply(regionNameAndKey);
if (keyPair != null) {
iaasInfo.getTemplate().getOptions().as(AWSEC2TemplateOptions.class)
.keyPair(keyPair.getKeyName());