def lambda_handler()

in lambda/source/create_sc_template.py [0:0]


def lambda_handler(event, context):
    logger.info('## ENVIRONMENT VARIABLES')
    logger.info(os.environ)
    logger.info('## EVENT')
    logger.info(event)
    
    # Lambda inputs
    temp_s3_bucket = event['temp_s3_bucket']
    product_name = event['product_name']
    
    addOn_zip_filename="alz-qs-"+product_name+".zip"
    sc_product_template_name="sc-"+product_name+".template"

    create_add_on(temp_s3_bucket, addOn_zip_filename, local_file_path, sc_product_template_name)
    utils.upload_to_s3(temp_s3_bucket, local_file_path+sc_product_template_name, sc_product_template_name)

    return {
        'statusCode': 200,
        'body': json.dumps('SC template created successfully!')
    }