Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 77ea7c8

Browse files
committed
update userdata install commands
1 parent e1558f4 commit 77ea7c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

templates/cloud-init-userdata.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ packages:
88
- python27-pip
99
- sed
1010
- wget
11+
- git
1112

1213

1314
runcmd:
1415
- pip install -U awscli boto3
15-
- cd /opt && wget https://aws-genomics-workflows.s3.amazonaws.com/artifacts/aws-ebs-autoscale.tgz && tar -xzf aws-ebs-autoscale.tgz
16-
- sh /opt/ebs-autoscale/install.sh /scratch 2>&1 > /var/log/intall-ebs-autoscale.log
16+
- EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
17+
- cd /opt && git clone https://github.com/awslabs/amazon-ebs-autoscale.git
18+
- cd /opt/amazon-ebs-autoscale && git checkout $EBS_AUTOSCALE_VERSION
19+
- sh /opt/amazon-ebs-autoscale/install.sh $scratchPath /dev/sdc 2>&1 > /var/log/ebs-autoscale-install.log

0 commit comments

Comments
 (0)