I have set of shell scripts that I wish to run in my ec2 instance.. I tried this
ec2-run-instances -K testing2.pem ami-****** -d Setup.sh
I get an error like this :
Required option '-C, --cert CERT' missing (-h for usage)
What is wrong in the above commands?
You’re missing an
EC2_CERTenvironment variable, and based on the fact that you’ve called your keytesting2.pem, I’d hypothesize you’re also missingEC2_PRIVATE_KEY. From the setup instructions:When you’ve set up those environment variables, you’ll be able to use them for all AWS CLI tools.
Assuming
testing2.pemis an instance keypair, what you really want is this command, after you’ve set up those environment variables, of course. Note the lowercase-kflag: