pull/20/head
alok 6 years ago
parent 7e4d43ba73
commit c90c2d38cb
  1. 8
      aws-code/create_client_instances.sh
  2. 8
      aws-code/create_instances.sh
  3. 13
      aws-code/get_availability_zones.sh
  4. 0
      aws-experiment-launch/configuration.txt
  5. 0
      aws-experiment-launch/create_and_deploy.py
  6. 0
      aws-experiment-launch/create_node_instances.sh
  7. 0
      aws-experiment-launch/dial/main.go
  8. 0
      aws-experiment-launch/experiment/commander/main.go
  9. 0
      aws-experiment-launch/experiment/soldier/main.go
  10. 0
      aws-experiment-launch/listen/main.go
  11. 0
      aws-experiment-launch/loghost/main.go
  12. 0
      aws-experiment-launch/user-data.sh

@ -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}]'

@ -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}]'

@ -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
Loading…
Cancel
Save