Normally S3 objects in localstack can be accessed via `http://localhost:4572/bucket/key`.

However, if the object is 7 MBs or larger, attempting to access it via this URL will result in a 403 error. Objects any smaller are retrieved as expected.

(Possibly related: Lambda response size is limited to 6MB. Perhaps that is being used by accident?)
"""
    Generic method to obtain an AWS service client using boto3, based on environment, region, or custom endpoint_url.
    """
    region_name = region_name or get_region()
    env = get_environment(env, region_name=region_name)
    region = env.region if env.region != REGION_LOCAL else region_name
    key_elements = [service_name, client, env, region, endpoint_url, config]
    cache_key = '/'.join([str(k) for k in key_elements])
    if cache_key not in BOTO_CLIENTS_CACHE:
        
        my_session = get_boto3_session()
        method = my_session.client if client else my_session.resource
        verify = True
        if not endpoint_url:
            if is_local_env(env):
                endpoint_url = get_local_service_url(service_name)
                verify = False
        BOTO_CLIENTS_CACHE[cache_key] = method(service_name, region_name=region,
            endpoint_url=endpoint_url, verify=verify, config=config)
    return BOTO_CLIENTS_CACHE[cache_key]
class VelocityInput: