in assets/lambda/code/download_defs/lambda.py [0:0]
def lambda_handler(event, context):
"""Updates the cvd files in the S3 Bucket"""
print(json.dumps(event))
defs_bucket = s3_resource.Bucket(os.environ["DEFS_BUCKET"])
download_path = "/tmp"
download_s3_defs(download_path, defs_bucket)
freshclam_update(download_path)
upload_s3_defs(download_path, defs_bucket)