Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def lambda_handler(event, context):
- try:
- logger.info(json.dumps(event,indent=4))
- main(event, context)
- responseStatus = 'SUCCESS'
- responseData = {}
- except Exception as msg:
- logger.error(msg)
- responseStatus = 'FAILED'
- responseData = {'error':msg}
- logger.info(
- 'Sending CloudFormation Response. ' +
- ' Status: ' + responseStatus + ', ' +
- ' Status JSON: ' + str(responseData)
- )
- cfnresponse.send(
- event,
- context,
- responseStatus,
- responseData
- )
Add Comment
Please, Sign In to add comment