def compose_uri(bucket, key=None):
    """
    Compose a bucket and key into an S3 URI
    :param bucket: Bucket name
    :param key: Object key
    :return: S3 URI string
    """
    if key:
        return 's3://{}/{}'.format(bucket, key)
    else:
        return 's3://{}/'.format(bucket)
