featurebase/qa/tf/ci/deletetest/delete_cloud_init.sh
Garrison Davis 664ec83524
Remove manual jobs from CI
These jobs all need TLC and to be moved to the new ansible platform. For
now, we're removing them because if they accidentally get triggered,
they cost a lot of money very quickly, and don't necessarily get us
anything useful if they pass or fail.

Revert "Updating any AWS shape instance to use"
...our existing reserved instance types.  This simply ensures if we ever
do run one of these tests it is against existing reserved instances.  If
the tests get removed thats OK also."

This reverts commit 69be968d6d.
2022-12-14 11:30:39 -07:00

20 lines
No EOL
609 B
Bash

#!/bin/bash
set +x # get debug log
set -e # exit on errors
echo "----------------------------"
echo "Running delete_cloud_init.sh"
# create and initialize a raid0 array
# for m5ad.16xlarge instance type, there are 4 NVMe SSDs.
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=4 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1 /dev/nvme4n1
# format filesystem
sudo mkfs.ext4 /dev/md0
# create a mount directory & mount the raid drive to this directory
sudo mkdir data
sudo mount /dev/md0 /data
# change permissions from root to ec2-user for data directory
sudo chown -R ec2-user:ec2-user /data