def get_template()

in AccountCreationLambda.py [0:0]


def get_template(sourcebucket, baselinetemplate):
    '''
        Read a template file and return the contents
    '''
    print("Reading resources from " + baselinetemplate)

    s3 = boto3.resource('s3')
    # obj = s3.Object('cf-to-create-lambda','5-newbaseline.yml')
    obj = s3.Object(sourcebucket, baselinetemplate)
    return obj.get()['Body'].read().decode('utf-8')