This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ROLENAME=$1 | |
if [ -z $ROLENAME ] ; then | |
echo "usage $0 <ROLENAME>" | |
exit 1 | |
fi | |
while read line ; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function WHOIS(ipaddr) { | |
var url = 'https://rdap-bootstrap.arin.net/bootstrap/ip/' + ipaddr | |
Logger.log(url) | |
var options = { | |
muteHttpExceptions: true, | |
followRedirects: true, | |
headers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REGIONS=`aws ec2 describe-regions --query Regions[].RegionName --output text` | |
for r in $REGIONS ; do | |
VAULTS=`aws backup list-backup-vaults --query BackupVaultList[].BackupVaultName --output text --region $r` | |
for v in $VAULTS ; do | |
RECOVERY_POINTS=`aws backup list-recovery-points-by-backup-vault --backup-vault-name $v --query RecoveryPoints[].RecoveryPointArn --output text --region $r` | |
for a in $RECOVERY_POINTS ; do |