@jdc18 - I found a solution for my use case. I am running serverless-offline with the setting useDocker: True
. Because my handler(s) run in Docker, I needed to use the special DNS name that allows the container access to my local network.
client = boto3.resource(
'dynamodb',
region_name='localhost',
endpoint_url='http://host.docker.internal:8000'
)