If you see the above exception if when following the README, you need to make a few changes:
I could not get this to run without specifying the admin user to explicitly be "ubuntu".
I also created a separate set of SSH keys to use in the cluster.
With these keys in the local ./ec2key_rsa and ./ec2key_rsa.pub files (chmod to 600 to make them private),
you need to set the compute-service to explicitly use the "ubuntu" user, and use these keys:
;; We can define our compute service here... (eval at the REPL)
(def ec2-service
(compute-service "aws-ec2"
:identity "YOUR_AWS_ACCESS_KEY"
:credential "YOUR_AWS_SECRET_KEY"
;;
;; Add this environment configuration to make it work
;;
:environment
{:user {:username "ubuntu" ;; change the admin user to "ubuntu"
:private-key-path "./ec2key_rsa" ;; path to the keys we just created
:public-key-path "./ec2key_rsa.pub"}}
))
If you see the above exception if when following the README, you need to make a few changes:
I could not get this to run without specifying the admin user to explicitly be "ubuntu". I also created a separate set of SSH keys to use in the cluster.
With these keys in the local ./ec2key_rsa and ./ec2key_rsa.pub files (chmod to 600 to make them private), you need to set the compute-service to explicitly use the "ubuntu" user, and use these keys:
;; We can define our compute service here... (eval at the REPL) (def ec2-service (compute-service "aws-ec2" :identity "YOUR_AWS_ACCESS_KEY" :credential "YOUR_AWS_SECRET_KEY" ;; ;; Add this environment configuration to make it work ;;
:environment {:user {:username "ubuntu" ;; change the admin user to "ubuntu" :private-key-path "./ec2key_rsa" ;; path to the keys we just created :public-key-path "./ec2key_rsa.pub"}} ))
See this gist for more detailed info: https://gist.github.com/3466724