mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-24 14:22:14 -05:00
ci: fetch latest console logs on aws (#2926)
This commit is contained in:
parent
abf6b4924a
commit
98a1cfa2ca
30
.github/actions/constellation_create/aws-logs.sh
vendored
30
.github/actions/constellation_create/aws-logs.sh
vendored
@ -25,20 +25,20 @@ workerInstances=$(
|
||||
yq eval '.Reservations[].Instances[].InstanceId' -
|
||||
)
|
||||
|
||||
echo "Fetching logs from control planes"
|
||||
for flag in "" "--latest"; do
|
||||
echo "Fetching ${flag} logs from control planes"
|
||||
for instance in ${controlInstances}; do
|
||||
printf "Fetching for %s\n" "${instance}"
|
||||
aws ec2 get-console-output "${flag}" --region "${1}" --instance-id "${instance}" |
|
||||
jq -r .'Output' |
|
||||
tail -n +2 > "control-plane-${instance}${flag}.log"
|
||||
done
|
||||
|
||||
for instance in ${controlInstances}; do
|
||||
printf "Fetching for %s\n" "${instance}"
|
||||
aws ec2 get-console-output --region "${1}" --instance-id "${instance}" |
|
||||
jq -r .'Output' |
|
||||
tail -n +2 > control-plane-"${instance}".log
|
||||
done
|
||||
|
||||
echo "Fetching logs from worker nodes"
|
||||
|
||||
for instance in ${workerInstances}; do
|
||||
printf "Fetching for %s\n" "${instance}"
|
||||
aws ec2 get-console-output --region "${1}" --instance-id "${instance}" |
|
||||
jq -r .'Output' |
|
||||
tail -n +2 > worker-"${instance}".log
|
||||
echo "Fetching ${flag} logs from worker nodes"
|
||||
for instance in ${workerInstances}; do
|
||||
printf "Fetching for %s\n" "${instance}"
|
||||
aws ec2 get-console-output "${flag}" --region "${1}" --instance-id "${instance}" |
|
||||
jq -r .'Output' |
|
||||
tail -n +2 > "worker-${instance}${flag}.log"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user