from typing import Any


def s3_read_text(s3: Any, bucket: str, key: str) -> str:
    """
    Reads the contents of a S3 bucket/key.
    """
    obj = s3.Object(bucket_name=bucket, key=key)
    return obj.get()["Body"].read()