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!