Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import boto3
  2. import copy_bucket
  3. import time
  4.  
  5. if __name__ == '__main__':
  6. region = copy_bucket.get_config()['provider']['region']
  7. client = boto3.client('lambda', region_name=region)
  8.  
  9. for x in range(199):
  10. time.sleep(0.01)
  11. response = client.invoke(FunctionName='cps3-prod-populate_s3',
  12. InvocationType='Event')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement