in lambda-supplier-providers/Microchip/main.py [0:0]
def lambda_handler(event, context):
queueUrl = os.environ['QUEUE_TARGET']
verifyCertname = os.environ['VERIFY_CERT']
# there can be only one manifest file per event? Need to verify
# this
bucketName = event['Records'][0]['s3']['bucket']['name']
manifestFilename = event['Records'][0]['s3']['object']['key']
# Get the manifest file and the integrity verification certificate from S3.
manifestContent = s3_filebuf_bytes(bucketName, manifestFilename)
verifycertContent = s3_filebuf_bytes(bucketName, verifyCertname)
invoke_export(manifestContent, verifycertContent, queueUrl)