Created
June 5, 2014 17:36
-
-
Save krhoyt/c8bcd9557bd4b7862e78 to your computer and use it in GitHub Desktop.
Series of command line steps used to create Kaazing Gateway instances on Amazon Web Services (AWS).
This file contains 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
[default] | |
output = json | |
region = us-east-1 | |
aws_access_key_id = __YOUR_KEY_ID__ | |
aws_secret_access_key = __YOUR_SECRET_KEY__ |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"NotAction": "iam:*", | |
"Resource": "*" | |
} | |
] | |
} |
This file contains 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
aws configure --profile default | |
aws iam create-user --user-name aws-cli-user | |
aws iam create-login-profile --user-name aws-cli-user --password <password> | |
aws iam create-access-key --user-name aws-cli-user | |
aws iam list-users | |
aws iam create-group --group-name aws-cli-admins | |
aws iam put-group-policy --group-name aws-cli-admins --policy-document file://policy.json --policy-name aws-cli-admins-power-user | |
aws iam add-user-to-group --user-name aws-cli-user --group-name aws-cli-admins | |
aws iam list-groups |
This file contains 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
aws ec2 create-key-pair --key-name kaazing-cli | |
aws ec2 describe-key-pairs | |
aws ec2 create-security-group --group-name cli-group --description "CLI Security Group" | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 22 --cidr 0.0.0.0/0 | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 8000 --cidr 0.0.0.0/0 | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 8001 --cidr 0.0.0.0/0 | |
aws ec2 describe-security-groups --group-names cli-group | |
aws ec2 run-instances --image-id ami-6fbd8f06 --count 1 --instance-type t1.micro --key-name kaazing-cli --security-groups cli-group | |
aws ec2 describe-instances |
This file contains 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
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew info | |
brew install wget | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo pip install awscli | |
aws configure --profile default | |
aws iam create-user --user-name aws-cli-user | |
aws iam create-login-profile --user-name aws-cli-user --password <password> | |
aws iam create-access-key --user-name aws-cli-user | |
aws iam list-users | |
aws iam create-group --group-name aws-cli-admins | |
aws iam put-group-policy --group-name aws-cli-admins --policy-document file://policy.json --policy-name aws-cli-admins-power-user | |
aws iam add-user-to-group --user-name aws-cli-user --group-name aws-cli-admins | |
aws iam list-groups | |
aws configure --profile cli | |
aws ec2 create-key-pair --key-name kaazing-cli | |
aws ec2 describe-key-pairs | |
aws ec2 create-security-group --group-name cli-group --description "CLI Security Group" | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 22 --cidr 0.0.0.0/0 | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 8000 --cidr 0.0.0.0/0 | |
aws ec2 authorize-security-group-ingress --group-name cli-group --protocol tcp --port 8001 --cidr 0.0.0.0/0 | |
aws ec2 describe-security-groups --group-names cli-group | |
aws ec2 run-instances --image-id ami-6fbd8f06 --count 1 --instance-type t1.micro --key-name kaazing-cli --security-groups cli-group | |
aws ec2 describe-instances |
This file contains 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
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew info |
This file contains 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
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo pip install awscli |
This file contains 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
brew install wget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment