Skip to content
Permalink
Browse files

Allow config option to tune cloudtrail sleep time

  • Loading branch information...
pwnbus committed Jul 9, 2019
1 parent e9fbd8b commit ee13b19fa1e633040ca79eacc188a062d10ad958
Showing with 4 additions and 0 deletions.
  1. +4 −0 mq/esworker_cloudtrail.py
@@ -290,6 +290,7 @@ def run(self):
options.accesskey,
options.secretkey)
)
time.sleep(options.sleep_time)

def on_message(self, body):
# print("RECEIVED MESSAGE: %r" % (body, ))
@@ -430,6 +431,9 @@ def initConfig():
# This is the full ARN that the s3 bucket lives under
options.cloudtrail_arn = getConfig('cloudtrail_arn', 'cloudtrail_arn', options.configfile)

# How long to sleep between iterations of querying AWS
options.sleep_time = getConfig('sleep_time', 0.1, options.configfile)


if __name__ == '__main__':
# configure ourselves

0 comments on commit ee13b19

Please sign in to comment.
You can’t perform that action at this time.