Created
April 13, 2019 05:03
-
-
Save keithrozario/605f14e0ea8d81d248772fb4473f1ee0 to your computer and use it in GitHub Desktop.
invoke_populate_s3
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
| 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