forked from uchihatmtkinu/RC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command.txt
41 lines (13 loc) · 4.51 KB
/
command.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","","export GOPATH=/home/ec2-user/go","cd /home/ec2-user/go/src/github.com/uchihatmtkinu/RC","git pull","curl http://169.254.169.254/latest/meta-data/local-ipv4 > /home/ec2-user/go/src/github.com/uchihatmtkinu/RC/testip.txt","go run main.go testip.txt IP3.txt IPp3.txt 1"],"executionTimeout":["3600"]}' --timeout-seconds 600 --output-s3-bucket-name "s3zeyu" --output-s3-key-prefix "test-900-1" --region us-west-2
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","","export GOPATH=/home/ec2-user/go","cd /home/ec2-user/go/src/github.com/uchihatmtkinu/RC","git pull","curl http://169.254.169.254/latest/meta-data/local-ipv4 > /home/ec2-user/go/src/github.com/uchihatmtkinu/RC/testip.txt","go run main.go testip.txt IP3.txt IPp3.txt 2"],"executionTimeout":["3600"]}' --timeout-seconds 600 --output-s3-bucket-name "s3zeyu" --output-s3-key-prefix "test-900-2" --region us-west-2
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor1800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","","export GOPATH=/home/ec2-user/go","cd /home/ec2-user/go/src/github.com/uchihatmtkinu/RC","git pull","curl http://169.254.169.254/latest/meta-data/local-ipv4 > /home/ec2-user/go/src/github.com/uchihatmtkinu/RC/testip.txt","go run main.go testip.txt IP3.txt IPp3.txt 1"],"executionTimeout":["3600"]}' --timeout-seconds 600 --output-s3-bucket-name "s3zeyu" --output-s3-key-prefix "test-900-1" --region us-east-2
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor1800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","","export GOPATH=/home/ec2-user/go","cd /home/ec2-user/go/src/github.com/uchihatmtkinu/RC","git pull","curl http://169.254.169.254/latest/meta-data/local-ipv4 > /home/ec2-user/go/src/github.com/uchihatmtkinu/RC/testip.txt","go run main.go testip.txt IP3.txt IPp3.txt 2"],"executionTimeout":["3600"]}' --timeout-seconds 600 --output-s3-bucket-name "s3zeyu" --output-s3-key-prefix "test-900-2" --region us-east-2
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","yum -y update","yum -y install git","yum -y install golang","export GOPATH=/home/ec2-user/go","","go get github.com/uchihatmtkinu/RC","go get github.com/boltdb/bolt"],"executionTimeout":["600"]}' --timeout-seconds 600 --region us-west-2
aws ssm send-command --document-name "AWS-RunShellScript" --targets '{"Key":"tag:Name","Values":["TestFor1800"]}' --max-concurrency "450" --max-errors "1" --parameters '{"commands":["#!/bin/bash","yum -y update","yum -y install git","yum -y install golang","export GOPATH=/home/ec2-user/go","","go get github.com/uchihatmtkinu/RC","go get github.com/boltdb/bolt"],"executionTimeout":["600"]}' --timeout-seconds 600 --region us-east-2
aws ec2 describe-instances --query "Reservations[*].Instances[*].PrivateIpAddress[]" --output=text --filter "Name=tag:Name,Values=TestFor800" --region us-west-2 >~/go/src/github.com/uchihatmtkinu/RC/IP1.txt
aws ec2 describe-instances --query "Reservations[*].Instances[*].PrivateIpAddress[]" --output=text --filter "Name=tag:Name,Values=TestFor1800" --region us-east-2 >~/go/src/github.com/uchihatmtkinu/RC/IP2.txt
aws ec2 describe-instances --query "Reservations[*].Instances[*].PublicIpAddress[]" --output=text --filter "Name=tag:Name,Values=TestFor800" --region us-west-2 >~/go/src/github.com/uchihatmtkinu/RC/IPp1.txt
aws ec2 describe-instances --query "Reservations[*].Instances[*].PublicIpAddress[]" --output=text --filter "Name=tag:Name,Values=TestFor1800" --region us-east-2 >~/go/src/github.com/uchihatmtkinu/RC/IPp2.txt
1
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId, PrivateIpAddress]" --output=text --filter "Name=tag:Name,Values=TestFor800" --region us-west-2 >~/go/src/github.com/uchihatmtkinu/RC/IpAddr1.txt
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId, PrivateIpAddress]" --output=text --filter "Name=tag:Name,Values=TestFor1800" --region us-east-2 >~/go/src/github.com/uchihatmtkinu/RC/IpAddr2.txt