small pixel drawing of a pufferfish dotfiles

Add env vars, s/tabs/spaces
j3s j3s@c3f.net
Fri, 06 Mar 2020 15:04:44 -0600
commit

d23e64e860c90de1fda4d9311073b8242161fc4a

parent

54cffa4ab04d1becf31025bf9a9dbf3c881e62d7

2 files changed, 22 insertions(+), 21 deletions(-)

jump to
M .shinit.shinit

@@ -17,7 +17,8 @@ alias cdr='cd $(find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks ~/git/chef/dc-roles -type d -maxdepth 1 | selecta)'

alias be='bundle exec' export HISTFILE="$HOME/.mksh-history" export CHEFUSER="jolson" - export CHEF_ENV="browse_test" + export CHEF_ENV="browse_test" # just for .chef/config.rb + export AWS_ENV="browse_test" # just for aws cli export SSHUSER="jolson" export SSHKEY="~/.ssh/id_rsa" export PASH_CLIP="pbcopy"
M bin/MACC02VK5ECHTD7/jws-fetchbin/MACC02VK5ECHTD7/jws-fetch

@@ -2,26 +2,26 @@ #!/bin/sh

date=$(date +%s) for r in us-east-1 us-west-2; do - for p in browse cgraph; do - for e in test stage prod; do - dir="/tmp/jws/${r}/${p}/${e}" - mkdir -p "$dir" - echo "Fetching ${r}/${p}/${e}" - aws ec2 describe-instances --profile "${p}_${e}" --region "$r" --output text --query "Reservations[*].Instances[*].{ - Instance:InstanceId, - Type:InstanceType, - AZ:Placement.AvailabilityZone, - Name:Tags[?Key==\`Name\`]|[0].Value, - pubIP:PublicIpAddress, - IP:PrivateIpAddress, - State:State.Name, - VPC:VpcId - }" | sed "s/$/ ${p}_${e}/" > "$dir/$date" & - # add profile to end for easy greppin' - # link current for other scripts - ln -fs "$dir/$date" "$dir/current" - done - done + for p in browse cgraph; do + for e in test stage prod; do + dir="/tmp/jws/${r}/${p}/${e}" + mkdir -p "$dir" + echo "Fetching ${r}/${p}/${e}" + aws ec2 describe-instances --profile "${p}_${e}" --region "$r" --output text --query "Reservations[*].Instances[*].{ + Instance:InstanceId, + Type:InstanceType, + AZ:Placement.AvailabilityZone, + Name:Tags[?Key==\`Name\`]|[0].Value, + pubIP:PublicIpAddress, + IP:PrivateIpAddress, + State:State.Name, + VPC:VpcId + }" | sed "s/$/ ${p}_${e}/" > "$dir/$date" & + # add profile to end for easy greppin' + # link current for other scripts + ln -fs "$dir/$date" "$dir/current" + done + done done wait