Skip to content

Commit 908b840

Browse files
committed
Add region name to boto client call.
1 parent 2ea4869 commit 908b840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localstack/testcontainers/localstack/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class LocalStackContainer(DockerContainer):
3737
3838
>>> with LocalStackContainer(image="localstack/localstack:0.11.4") as localstack:
3939
... dynamo_endpoint = localstack.get_url()
40-
... dynamo_client = boto3.client("dynamodb", endpoint_url=dynamo_endpoint)
40+
... dynamo_client = boto3.client("dynamodb", endpoint_url=dynamo_endpoint,
41+
... region_name="us-west-1")
4142
... scan_result = dynamo_client.scan(TableName='foo')
4243
"""
4344
def __init__(self, image: str = 'localstack/localstack:0.11.4', edge_port: int = 4566,

0 commit comments

Comments
 (0)