Skip to content

Commit dda2b45

Browse files
committed
Drop lambda service in localstack doctests.
1 parent af15425 commit dda2b45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

localstack/testcontainers/localstack/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ class LocalStackContainer(DockerContainer):
2525
>>> from testcontainers.localstack import LocalStackContainer
2626
2727
>>> with LocalStackContainer(image="localstack/localstack:0.11.4") as localstack:
28-
... localstack.with_services("dynamodb", "lambda")
2928
... dynamo_endpoint = localstack.get_url()
3029
<testcontainers.localstack.LocalStackContainer object at 0x...>
3130
3231
The endpoint can be used to create a client with the boto3 library:
32+
3333
.. doctest::
3434
3535
>>> from testcontainers.localstack import LocalStackContainer
3636
3737
>>> with LocalStackContainer(image="localstack/localstack:0.11.4") as localstack:
38-
... localstack.with_services("dynamodb", "lambda")
3938
... dynamo_endpoint = localstack.get_url()
4039
... dynamo_client = boto3.client("dynamodb", endpoint_url=dynamo_endpoint)
4140
... scan_result = dynamo_client.scan(TableName='foo')

0 commit comments

Comments
 (0)