parent
bc1091816d
commit
1281a9fbbf
@ -0,0 +1 @@ |
||||
echo "Hi, I am in aws-scripts and its seems to have worked." |
@ -0,0 +1,22 @@ |
||||
version: 0.0 |
||||
os: linux |
||||
files: |
||||
- source: ../ |
||||
destination: /projects/ |
||||
hooks: |
||||
BeforeInstall: |
||||
- location: aws-scripts/say_hello.sh |
||||
timeout: 300 |
||||
runas: root |
||||
AfterInstall: |
||||
- location: aws-scripts/say_hello.sh #maybe start the server |
||||
timeout: 300 |
||||
runas: root |
||||
ApplicationStart: |
||||
- location: aws-scripts/say_hello.sh #maybe start the server. |
||||
timeout: 300 |
||||
runas: root |
||||
ApplicationStop: |
||||
- location: aws-scripts/say_hello.sh |
||||
timeout: 300 |
||||
runas: root |
@ -0,0 +1 @@ |
||||
scp -i main.pem -r ~/Documents/goworkspace/src/github.com/harmony-benchmark/ ec2-user@ec2-34-219-218-239.us-west-2.compute.amazonaws.com:/home/ec2-user/projects/ |
@ -0,0 +1,7 @@ |
||||
sudo yum update |
||||
sudo yum install wget |
||||
REGION=$(curl 16.9.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//' ) |
||||
cd /home/ec2-user |
||||
wget https://aws-codedeploy-$REGION.s3.amazonaws.com/lates/install |
||||
chmod +x ./install |
||||
sudo ./install auto |
Loading…
Reference in new issue