clean up userdata.

pull/39/head
Richard Liu 6 years ago
parent 3a5a4053c5
commit b59ace814a
  1. 0
      aws-experiment-launch/configs/userdata-commander.sh
  2. 2
      aws-experiment-launch/configs/userdata-soldier.sh
  3. 11
      aws-experiment-launch/utils/user-data.sh
  4. 10
      aws-scripts/user-data.sh

@ -1,6 +1,6 @@
#!/bin/bash
cd home/ec2-user
commanderIP=# <- Put the commander IP here.
commanderIP= # <- Put the commander IP here.
curl http://$commanderIP:8080/soldier -o soldier
chmod +x ./soldier
curl http://$commanderIP:8080/benchmark -o benchmark

@ -1,11 +0,0 @@
#!/bin/bash -x
REGION=$(curl 169.254.169.254/latest/meta-data/placement/availability-zone/ | sed 's/[a-z]$//')
#yum update -y #This breaking codedeploy right now
yum install ruby wget -y
cd /home/ec2-user
touch yum-not-updated.txt
wget https://aws-codedeploy-$REGION.s3.amazonaws.com/latest/install
chmod +x ./install
./install auto
mkdir projects
mkdir projects/src

@ -1,10 +0,0 @@
#!/bin/bash -x
REGION=$(curl 169.254.169.254/latest/meta-data/placement/availability-zone/ | sed 's/[a-z]$//')
yum update -y
yum install ruby wget -y
cd /home/ec2-user
wget https://aws-codedeploy-$REGION.s3.amazonaws.com/latest/install
chmod +x ./install
./install auto
mkdir projects
mkdir projects/src
Loading…
Cancel
Save