Reputation: 479
I trying to extract the aws region parameter from the s3 event data, I have already extracted the the bucket name and the key but I am unable to get the aws region or print the whole event data
source_bucket = event['Records'][0]['s3']['bucket']['name']
key_created = urllib.unquote_plus(event['Records'][0]['s3']['object']['key']).decode('utf8')
Upvotes: 0
Views: 1145