diff --git a/get-aws-node-status.sh b/get-aws-node-status.sh new file mode 100755 index 0000000..aad14b0 --- /dev/null +++ b/get-aws-node-status.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +aws ec2 describe-instance-status | \ + jq '.InstanceStatuses[] | {id: .InstanceId, instance_status: .InstanceStatus.Status, system_status: .SystemStatus.Status}' diff --git a/get-vm-ips.sh b/get-vm-ips.sh index cbdc820..230b5cf 100755 --- a/get-vm-ips.sh +++ b/get-vm-ips.sh @@ -48,7 +48,6 @@ ANSIBLE_INV="$( sed -z 's/\n/,/g;s/,$/\n/g')" # Create an inventory file for ansible. -echo "# Wrote an Ansible inventory file at ./inventory" echo "[k8s_nodes]" > inventory echo $VM_IP_EXPORTS | \ sed 's/"//g' | \