IMPORT YOUR OWN RSA SSH KEY INTO AMAZON EC2

Recently, I needed to import my own RSA SSH key to EC2. Here is a quick way to import to all regions for r in us-east-1 us-west-1 ap-southeast-1 eu-west-1; do ec2-import-keypair –region $r paul-public-key –public-key-file ~/.ssh/id_rsa.pub ; done Replace ~/.ssh/id_rsa.pub with the path to your public key, and evan-public-key with the name you would to [...]

Posted at 8pm on 1/27/14 | no comments; | Filed Under: Code, Tutorials | read on

Assign multiple security groups on Amazon EC2 Run Instances (ec2-run-instances)

Recently, I needed to deploy new servers with multiple defined security groups on AWS EC2 using CLI. Note: Security groups can only be defined on instance launch unless using VPC. econkle:~/ $ ec2-run-instances ami-12345678 -n 1 -k key-pair \ –instance-type m1.small –availability-zone us-east-1c \ -g default -g security.group-1 -g security.group-2 -g security.group-3

Posted at 6pm on 1/16/14 | no comments; | Filed Under: Code, Tutorials | read on

About

I am a Texas Christian University alum with a Bachelor of Science (Kinesiology) degree, entrepreneur, and developer. I currently work as an Enterprise Application Developer in Dallas, TX.

‚ÄúPeople who say it takes money to make money are using the worst excuse ever. . . Create massive value for others by providing a solution where no other exists.”