(event, context)
| 84 | update_function(event) |
| 85 | |
| 86 | def lambda_handler(event, context): |
| 87 | logger.info(os.environ) |
| 88 | logger.info(json.dumps(event, indent = 2, default = str)) |
| 89 | |
| 90 | # If the event has a RequestType, we're being called by CFN as custom resource |
| 91 | if event.get('RequestType'): |
| 92 | logger.info('Function called from CloudFormation as custom resource') |
| 93 | helper(event, context) |
| 94 | else: |
| 95 | logger.info('Function called outside of CloudFormation') |
| 96 | # Call function directly (i.e. testing in Lambda console or called directly) |
| 97 | update_function(event) |
nothing calls this directly
no test coverage detected