Skip to content

Commit

Permalink
Rightsize test instances
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Jun 6, 2023
1 parent 11d27be commit 7bcd4a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .buildkite/steps/launch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -eu
set -euo pipefail

os="${1:-linux}"
arch="${2:-amd64}"
Expand All @@ -22,16 +22,16 @@ echo "Using AMI $image_id for $os/$arch"
service_role="$(buildkite-agent meta-data get service-role-arn)"
echo "Using service role ${service_role}"

instance_type="t3.nano"
instance_type="t3.small"
instance_disk="10"

if [[ "$os" == "windows" ]] ; then
if [[ "$os" == "windows" ]]; then
instance_type="m5.large"
instance_disk="100"
fi

if [[ "$arch" == "arm64" ]] ; then
instance_type="m6g.large"
if [[ "$arch" == "arm64" ]]; then
instance_type="t4g.small"
fi

cat << EOF > config.json
Expand Down

0 comments on commit 7bcd4a7

Please sign in to comment.