From c90c2d38cbb56b83ce28cedbfb2bd6aa6163a4ed Mon Sep 17 00:00:00 2001 From: alok Date: Tue, 3 Jul 2018 16:20:10 -0700 Subject: [PATCH] clean up --- aws-code/create_client_instances.sh | 8 -------- aws-code/create_instances.sh | 8 -------- aws-code/get_availability_zones.sh | 13 ------------- .../configuration.txt | 0 .../create_and_deploy.py | 0 .../create_node_instances.sh | 0 {aws-code => aws-experiment-launch}/dial/main.go | 0 .../experiment/commander/main.go | 0 .../experiment/soldier/main.go | 0 {aws-code => aws-experiment-launch}/listen/main.go | 0 {aws-code => aws-experiment-launch}/loghost/main.go | 0 {aws-code => aws-experiment-launch}/user-data.sh | 0 12 files changed, 29 deletions(-) delete mode 100755 aws-code/create_client_instances.sh delete mode 100755 aws-code/create_instances.sh delete mode 100755 aws-code/get_availability_zones.sh rename {aws-code => aws-experiment-launch}/configuration.txt (100%) rename {aws-code => aws-experiment-launch}/create_and_deploy.py (100%) rename {aws-code => aws-experiment-launch}/create_node_instances.sh (100%) rename {aws-code => aws-experiment-launch}/dial/main.go (100%) rename {aws-code => aws-experiment-launch}/experiment/commander/main.go (100%) rename {aws-code => aws-experiment-launch}/experiment/soldier/main.go (100%) rename {aws-code => aws-experiment-launch}/listen/main.go (100%) rename {aws-code => aws-experiment-launch}/loghost/main.go (100%) rename {aws-code => aws-experiment-launch}/user-data.sh (100%) diff --git a/aws-code/create_client_instances.sh b/aws-code/create_client_instances.sh deleted file mode 100755 index f23fd5521..000000000 --- a/aws-code/create_client_instances.sh +++ /dev/null @@ -1,8 +0,0 @@ -# security_group_name=$1 -# security_group_description=$2 -# instanceName=$3 -aws ec2 create-security-group --group-name mcDG --description "mcdg" -aws ec2 authorize-security-group-ingress --group-name MySecurityGroup --protocol tcp --port all --cidr 0.0.0.0/0 - -aws ec2 run-instances --image-id ami-a9d09ed1 --count 5 --instance-type t2.micro --key-name main --security-group-ids mcDG \ ---user-data user-data.sh --iam-instance-profile Name=CodeDeployDemo-EC2-Instance-Profile --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=Client}]' diff --git a/aws-code/create_instances.sh b/aws-code/create_instances.sh deleted file mode 100755 index f23fd5521..000000000 --- a/aws-code/create_instances.sh +++ /dev/null @@ -1,8 +0,0 @@ -# security_group_name=$1 -# security_group_description=$2 -# instanceName=$3 -aws ec2 create-security-group --group-name mcDG --description "mcdg" -aws ec2 authorize-security-group-ingress --group-name MySecurityGroup --protocol tcp --port all --cidr 0.0.0.0/0 - -aws ec2 run-instances --image-id ami-a9d09ed1 --count 5 --instance-type t2.micro --key-name main --security-group-ids mcDG \ ---user-data user-data.sh --iam-instance-profile Name=CodeDeployDemo-EC2-Instance-Profile --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=Client}]' diff --git a/aws-code/get_availability_zones.sh b/aws-code/get_availability_zones.sh deleted file mode 100755 index c5382fb0d..000000000 --- a/aws-code/get_availability_zones.sh +++ /dev/null @@ -1,13 +0,0 @@ -echo "Getting list of Availability Zones" -all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) -all_az=() - -echo $all_regions -while read -r region; do - az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) - echo $region $az_per_region - while read -r az; do - all_az+=($az) - done <<< "$az_per_region" -done <<< "$all_regions" -echo $all_az diff --git a/aws-code/configuration.txt b/aws-experiment-launch/configuration.txt similarity index 100% rename from aws-code/configuration.txt rename to aws-experiment-launch/configuration.txt diff --git a/aws-code/create_and_deploy.py b/aws-experiment-launch/create_and_deploy.py similarity index 100% rename from aws-code/create_and_deploy.py rename to aws-experiment-launch/create_and_deploy.py diff --git a/aws-code/create_node_instances.sh b/aws-experiment-launch/create_node_instances.sh similarity index 100% rename from aws-code/create_node_instances.sh rename to aws-experiment-launch/create_node_instances.sh diff --git a/aws-code/dial/main.go b/aws-experiment-launch/dial/main.go similarity index 100% rename from aws-code/dial/main.go rename to aws-experiment-launch/dial/main.go diff --git a/aws-code/experiment/commander/main.go b/aws-experiment-launch/experiment/commander/main.go similarity index 100% rename from aws-code/experiment/commander/main.go rename to aws-experiment-launch/experiment/commander/main.go diff --git a/aws-code/experiment/soldier/main.go b/aws-experiment-launch/experiment/soldier/main.go similarity index 100% rename from aws-code/experiment/soldier/main.go rename to aws-experiment-launch/experiment/soldier/main.go diff --git a/aws-code/listen/main.go b/aws-experiment-launch/listen/main.go similarity index 100% rename from aws-code/listen/main.go rename to aws-experiment-launch/listen/main.go diff --git a/aws-code/loghost/main.go b/aws-experiment-launch/loghost/main.go similarity index 100% rename from aws-code/loghost/main.go rename to aws-experiment-launch/loghost/main.go diff --git a/aws-code/user-data.sh b/aws-experiment-launch/user-data.sh similarity index 100% rename from aws-code/user-data.sh rename to aws-experiment-launch/user-data.sh