Hi all,
I'm creating nodes on EC2 with ComputeService.createNodesInGroup() and
would like to use a keypair provided by Amazon as a .pem file to
access it later.
I thought that I could do this by passing the content of the .pem file
into the EC2TemplateOptions like this:
EC2TemplateOptions opts = EC2TemplateOptions.Builder
.keyPair(keyPairString)
However, that gives me the following error message:
"please use options.overrideLoginCredentialWith(rsa_private_text)
at
com.google.common.base.Preconditions.checkArgument(Preconditions.java:120)"
However that overrideLoginCredentialWith() method doesn't exist on the
EC2TemplateOptions.
Is there a way to use the key that I received as .pem file for nodes
that I create with ComputeService.createNodesInGroup()?
Thanks,
David