Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created April 13, 2019 05:03
Show Gist options
  • Save keithrozario/605f14e0ea8d81d248772fb4473f1ee0 to your computer and use it in GitHub Desktop.
Save keithrozario/605f14e0ea8d81d248772fb4473f1ee0 to your computer and use it in GitHub Desktop.
invoke_populate_s3
import boto3
import copy_bucket
import time
if __name__ == '__main__':
region = copy_bucket.get_config()['provider']['region']
client = boto3.client('lambda', region_name=region)
for x in range(199):
time.sleep(0.01)
response = client.invoke(FunctionName='cps3-prod-populate_s3',
InvocationType='Event')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment