Skip to content

Commit 0e82865

Browse files
Added getterraform script (#131)
* Added 24.04 base image, EC deployments, and benchmark client deployment with latest base image * Moved redistimeseries base image from ami-01207799cb12aebd3 (which used redis 7.4) to ami-0cda50c2e20879afb which uses 8.0 * Updated private key used on timeseries deployments * Added getterraform script --------- Co-authored-by: filipecosta90 <filipecosta.90@gmail.com>
1 parent 2701946 commit 0e82865

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

terraform/getterraform

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
VERSION=${VERSION:-"1.10.5"}
4+
5+
6+
PROGNAME="${BASH_SOURCE[0]}"
7+
HERE="$(cd "$(dirname "$PROGNAME")" &>/dev/null && pwd)"
8+
READIES=$(cd $HERE/.. && pwd)
9+
. $READIES/shibumi/defs
10+
11+
OS=`uname -s`
12+
if [[ $OS == Linux ]]; then
13+
OS=linux
14+
elif [[ $OS == Darwin ]]; then
15+
OS=darwin
16+
elif [[ $OS == FreBSD ]]; then
17+
OS=freebsd
18+
else
19+
echo "$OS: unsupported"
20+
fi
21+
22+
ARCH=`uname -m`
23+
if [[ $ARCH == x86_64 ]]; then
24+
ARCH=amd64
25+
elif [[ $ARCH == i686 ]]; then
26+
ARCH=386
27+
elif [[ $ARCH == aarch64 ]]; then
28+
ARCH=arm64
29+
elif [[ $ARCH == armv7l ]]; then
30+
ARCH=arm
31+
else
32+
echo "$ARCH: unsupported"
33+
exit 1
34+
fi
35+
36+
dir=$(mktemp -d /tmp/tf.XXXXXX)
37+
wget -q -O $dir/tf.zip https://releases.hashicorp.com/terraform/${VERSION}/terraform_${VERSION}_${OS}_${ARCH}.zip
38+
cd $dir
39+
unzip -q tf.zip
40+
chmod +x terraform
41+
mv terraform /usr/local/bin/
42+
cd $HERE
43+
rm -rf $dir

terraform/oss-redistimeseries-m5-spot-instances/db-resources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "aws_spot_instance_request" "server" {
3131
user = var.ssh_user
3232
private_key = file(var.private_key)
3333
#need to increase timeout to larger then 5m for metal instances
34-
timeout = "15m"
34+
timeout = "8m"
3535
agent = "false"
3636
}
3737
}

0 commit comments

Comments
 (0)