Created
May 6, 2014 23:48
-
-
Save solidsnack/1e8c015cbc292583a2e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Launching CentOS AMIs: | |
| :; source ./aws.profile | |
| :; aws ec2 run-instances --image-id ami-eb6b0182 \ | |
| --instance-type m1.small --count 6 \ | |
| --key-name "$AWS_SSH_KEY" \ | |
| --security-groups "$AWS_SECURITY_GROUP" | |
| ### Viewing run status and DNS names for relevant instances: | |
| :; source ./aws.profile | |
| :; aws ec2 describe-instances --output text \ | |
| --filter Name=instance.group-name,Values="$AWS_SECURITY_GROUP" \ | |
| --query 'Reservations[*].Instances[*].[InstanceId,State.Name,PublicDnsName]' | |
| ### SSHing to an instance: | |
| :; ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ | |
| -i aws.pem root@ec2-???.compute-1.amazonaws.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment