git push -u origin dev
git checkout --track origin/dev
#!/bin/bash | |
unset AWS_PROFILE | |
unset AWS_DEFAULT_REGION | |
PROFILE=$1 | |
REGION=$(aws --profile $PROFILE configure get region) | |
REGION=${REGION:-us-east-1} | |
echo export AWS_PROFILE=${PROFILE} | |
export AWS_PROFILE=${PROFILE} |
aws ec2 describe-instances --query 'Reservations[?Instances | length(@) > `1` ].[ReservationId,Instances[].[InstanceId]]'
aws ec2 describe-instances \
--query 'Reservations[?Instances | length(@) == `3`].[ReservationId,Instances[] | length(@)]'