Guest User

Untitled

a guest
Jul 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. def lambda_handler(event, context):
  2. try:
  3. logger.info(json.dumps(event,indent=4))
  4. main(event, context)
  5.  
  6. responseStatus = 'SUCCESS'
  7. responseData = {}
  8. except Exception as msg:
  9. logger.error(msg)
  10.  
  11. responseStatus = 'FAILED'
  12. responseData = {'error':msg}
  13.  
  14. logger.info(
  15. 'Sending CloudFormation Response. ' +
  16. ' Status: ' + responseStatus + ', ' +
  17. ' Status JSON: ' + str(responseData)
  18. )
  19.  
  20. cfnresponse.send(
  21. event,
  22. context,
  23. responseStatus,
  24. responseData
  25. )
Add Comment
Please, Sign In to add comment