aws ec2 create-key-pair --profile redislabs --key-name maguec1 --region us-west-1 \ | jq .KeyMaterial | awk '{gsub(/\\n/,"\n")}1' | \ sed -e s/\"//g >> ~/.ssh/maguec1.pem chmod 0600 ~/.ssh/maguec1.pem