pull/17/head
Richard Liu 6 years ago
parent 93f7f36cc1
commit 1b95c23c0e
  1. 2
      appspec.yml
  2. 3
      aws-scripts/run_instances.sh
  3. 1
      aws-scripts/say_bye.sh
  4. 2
      aws-scripts/say_hello.sh
  5. 7
      scripts/create-instance.sh
  6. 7
      scripts/instance-setup.sh

@ -17,6 +17,6 @@ hooks:
timeout: 300
runas: root
ApplicationStop:
- location: aws-scripts/say_hello.sh
- location: aws-scripts/say_bye.sh
timeout: 10
runas: root

@ -1,3 +1,4 @@
#!/bin/bash -x
cd /home/ec2-user/projects/src/harmony-benchmark
./deploy_one_instance.sh global_nodes.txt
# ./deploy_one_instance.sh global_nodes.txt
echo "Run" >> tmplog

@ -0,0 +1 @@
echo "Bye" > tmplog

@ -1 +1 @@
echo "Hi, I am in aws-scripts and its seems to have worked."
echo "Hello" > tmplog

@ -0,0 +1,7 @@
aws ec2 run-instances \
--count 1 \
--image-id ami-f2d3638a \
--instance-type m3.medium \
--key-name richard-spot-instance \
--security-group-ids sg-06f90158506dca54f \
--user-data file://instance-setup.sh

@ -0,0 +1,7 @@
#!/bin/bash
yum -y update
yum install -y ruby
cd /home/ec2-user
curl -O https://aws-codedeploy-us-west-2.s3.amazonaws.com/latest/install
chmod +x ./install
./install auto
Loading…
Cancel
Save