Otto: invalid public key format

91 views
Skip to first unread message

waute...@gmail.com

unread,
Jul 1, 2016, 7:08:00 AM7/1/16
to Otto
I'm following along with the Getting Started example on the Otto website. When I run 'otto infra', I run into issues. Basically I provide the AWS Access Key and AWS Secret Key, the pub key file and the encryption password. Eventually, I'm getting the following error message:

Error applying plan:

1 error(s) occurred:

* aws_key_pair.main: Error import KeyPair: InvalidKey.Format: Key is not in valid OpenSSH public key format
status code: 400, request id: 301e13bb-93f3-49ee-8af7-2fea9e560ae2

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

To create the public key, I downloaded the PEM file from AWS and have created the public key via the following command "ssh-keygen -y -f Keypair_Amazon.pem >> test.pub". 

Is this the wrong command to create the public key for Otto?

Any suggestions are welcome!

Michael Leow

unread,
Jul 5, 2016, 9:38:42 AM7/5/16
to Otto
All you need should be just Access Key and "Secret Access Key"; that is all.  

Enter those when prompted; nothing else needed; for example:
leow$ cat ~/Downloads/credentials\ \(1\).csv
User Name,Access Key Id,Secret Access Key
"otto",XYZDEF,SECRETACCESSKEY1234

Reply all
Reply to author
Forward
0 new messages