@rachel I am facing a similar problem as @janardhanp22 but for me it says No such file or directory.
$ bash setup_p2.sh
setup_p2.sh: line 13: /home/ashish/.ssh/aws-key.pem: No such file or directory
chmod: cannot access '/home/ashish/.ssh/aws-key.pem': No such file or directory
An error occurred (InvalidKeyPair.NotFound) when calling the RunInstances operation: The key pair 'aws-key' does not exist
Waiting for instance start...
I tried the rm cmd but it gave me the same error.
$ rm ~/.ssh/aws-key.pem
rm: cannot remove '/home/ashish/.ssh/aws-key.pem': No such file or directory
I am running Cygwin on Windows 7. My aws console instance limits show that I can have 1 ps.xlarge.