mirror of https://github.com/x89/Shreddit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
313 B
13 lines
313 B
9 years ago
|
"""This module contains the handler function called by AWS.
|
||
|
"""
|
||
|
from shreddit.shredder import shred
|
||
|
import yaml
|
||
|
|
||
|
|
||
|
def lambda_handler(event, context):
|
||
|
with open("shreddit.yml") as fh:
|
||
|
config = yaml.safe_load(fh)
|
||
|
if not config:
|
||
|
raise Exception("No config options passed!")
|
||
|
shred(config)
|