def lambda_handler()

in lambda/source/create_input_files.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']
    #param_file_path = event['param_file'] # 'parameter.json'
    #user_input_file_path = event['user_input_file'] # parameter.yaml
    product_s3_url = event['product_s3_url'] # https://aws-quickstart.s3.amazonaws.com/quickstart-f5-big-ip-virtual-edition/templates/master.template
    
    
    create_and_upload(product_s3_url, param_file_path, user_input_file_path, temp_s3_bucket)
    
    return {
        'statusCode': 200,
        'body': json.dumps('Created and uploaded parameter and user input file successfully!')
    }