checkArgument(keyPairExtensionPresent, "Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); if (templateOptions.getLoginPrivateKey() != null) { String pem = templateOptions.getLoginPrivateKey(); KeyPair keyPair = KeyPair.builder().name(templateOptions.getKeyPairName()) .fingerprint(fingerprintPrivateKey(pem)).privateKey(pem).build();
checkArgument(keyPairExtensionPresent, "Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); if (templateOptions.getLoginPrivateKey() != null) { String pem = templateOptions.getLoginPrivateKey(); KeyPair keyPair = KeyPair.builder().name(templateOptions.getKeyPairName()) .fingerprint(fingerprintPrivateKey(pem)).privateKey(pem).build();
checkArgument(keyPairExtensionPresent, "Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); if (templateOptions.getLoginPrivateKey() != null) { String pem = templateOptions.getLoginPrivateKey(); KeyPair keyPair = KeyPair.builder().name(templateOptions.getKeyPairName()) .fingerprint(fingerprintPrivateKey(pem)).privateKey(pem).build();
checkArgument(keyPairExtensionPresent, "Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); if (templateOptions.getLoginPrivateKey() != null) { String pem = templateOptions.getLoginPrivateKey(); KeyPair keyPair = KeyPair.builder().name(templateOptions.getKeyPairName()) .fingerprint(fingerprintPrivateKey(pem)).privateKey(pem).build();
keyPair = generateKeyPair(region, namingConvention.create().sharedNameForGroup(group)); if (Strings.isNullOrEmpty(templateOptions.getLoginPrivateKey())) { templateOptions.overrideLoginPrivateKey(keyPair.getPrivateKey());
keyPair = generateKeyPair(region, namingConvention.create().sharedNameForGroup(group)); if (Strings.isNullOrEmpty(templateOptions.getLoginPrivateKey())) { templateOptions.overrideLoginPrivateKey(keyPair.getPrivateKey());
if (templateOptions.getLoginPrivateKey() != null) { credentialsBuilder.privateKey(templateOptions.getLoginPrivateKey());
if (templateOptions.getLoginPrivateKey() != null) { credentialsBuilder.privateKey(templateOptions.getLoginPrivateKey());