Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 17, 2026
1 parent 26ed7d9 commit 4d8230b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions local-app/python-tools/cross-organization/run.check_cloudtrail.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

VERSION="1.0.0"
export PYTHONUNBUFFERED=1

if [ -z "$1" ]
then
ORG="ent-gov"
else
ORG="$1"
fi

WORKERS=8
if [ "$ORG" == "ent-gov" ]
then
REGION="us-gov-east-1"
REGIONS="us-gov-east-1 us-gov-west-1"
WORKERS=16
fi
if [ "$ORG" == "lab-gov" ]
then
REGION="us-gov-east-1"
REGIONS="us-gov-east-1 us-gov-west-1"
fi
if [ "$ORG" == "ent-ew" ]
then
REGION="us-east-1"
REGIONS="us-east-1 us-east-1 us-west-1 us-west-2"
WORKERS=16
fi

if [ ! -z "$2" ]
then
REGION="$2"
fi

CHECK="check_cloudtrail"

if [ $CHECK == "NAME" ]
then
echo "* configure for the appropriate check"
exit 1
fi

# --dry-run
# --no-logfile
echo "* executing for ORG $ORG region $REGION check $CHECK workers $WORKERS"
./org_runner3.py --profile $ORG.org --region $REGION \
--progress-account \
--role-name r-inf-org-controller \
--output \
--module $CHECK \
--regions $REGIONS \
--max-workers $WORKERS

0 comments on commit 4d8230b

Please sign in to comment.