lambda-functions/cloudfront-logs-processor-function/prep-data.py [12:23]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print('Loading function')

s3 = boto3.client('s3')
firehose = boto3.client('firehose')
cdn_source = os.environ['CDN_SOURCE']
delivery_stream = os.environ['KINESIS_FIREHOSE_STREAM']

def lambda_handler(event, context):
    #print("Received event: " + json.dumps(event, indent=2))

    # Get the object from the event and show its content type
    bucket = event['Records'][0]['s3']['bucket']['name']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lambda-functions/fastly-logs-processor-function/prep-data.py [11:22]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print('Loading function')

s3 = boto3.client('s3')
firehose = boto3.client('firehose')
cdn_source = os.environ['CDN_SOURCE']
delivery_stream = os.environ['KINESIS_FIREHOSE_STREAM']

def lambda_handler(event, context):
    #print("Received event: " + json.dumps(event, indent=2))

    # Get the object from the event and show its content type
    bucket = event['Records'][0]['s3']['bucket']['name']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



