How to use the crhelper.cfn_handler function in crhelper

To help you get started, we’ve selected a few crhelper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-parallelcluster / cli / pcluster / resources / batch / custom_resources_code / cleanup_resources.py View on Github external
def handler(event, context):
    """Main handler function, passes off it's work to crhelper's cfn_handler."""  # noqa: D401
    # update the logger with event info
    global logger
    logger = crhelper.log_config(event, loglevel="info")
    return crhelper.cfn_handler(event, context, create, update, delete, logger, init_failed)
github aws-quickstart / quickstart-cloud9-ide / functions / source / extend / setenv.py View on Github external
def handler(event, context):
    """
    Main handler function, passes off it's work to crhelper's cfn_handler
    """
    # update the logger with event info
    global logger
    logger = crhelper.log_config(event)
    return crhelper.cfn_handler(event, context, create, update, delete, logger, init_failed)
github aws / aws-parallelcluster / cli / pcluster / resources / batch / custom_resources_code / manage_docker_images.py View on Github external
def handler(event, context):
    """Main handler function, passes off it's work to crhelper's cfn_handler."""  # noqa: D401
    # update the logger with event info
    global logger
    logger = crhelper.log_config(event, loglevel="info")
    return crhelper.cfn_handler(event, context, create, update, delete, logger, init_failed)
github awslabs / aws-cloudformation-templates / aws / solutions / StackSetsResource / FunctionCode / lambda_function.py View on Github external
def handler(event, context):
    """
    Main handler function, passes off it's work to crhelper's cfn_handler
    """
    # update the logger with event info
    global logger
    logger = crhelper.log_config(event)
    return crhelper.cfn_handler(event, context, create, update, delete, logger,
                                init_failed)

crhelper

crhelper simplifies authoring CloudFormation Custom Resources

Apache-2.0
Latest version published 2 years ago

Package Health Score

69 / 100
Full package analysis

Similar packages