Adjust AWS EC2 type in tests depending on CPU arch

This commit is contained in:
Alexander Todorov 2022-09-08 10:11:55 +03:00 committed by Alexander Todorov
parent 769ffc617d
commit 647acfa2f4

View file

@ -245,6 +245,10 @@ tee "${TEMPDIR}/resource-file.json" <<EOF
}
EOF
if [ "$ARCH" == "aarch64" ]; then
sed -i s/t3.medium/a1.large/ "${TEMPDIR}/resource-file.json"
fi
sudo ${CONTAINER_RUNTIME} run \
-a stdout -a stderr \
-e AWS_ACCESS_KEY_ID="${V2_AWS_ACCESS_KEY_ID}" \