File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
localstack/testcontainers/localstack Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,16 @@ class LocalStackContainer(DockerContainer):
25
25
>>> from testcontainers.localstack import LocalStackContainer
26
26
27
27
>>> with LocalStackContainer(image="localstack/localstack:0.11.4") as localstack:
28
- ... localstack.with_services("dynamodb", "lambda")
29
28
... dynamo_endpoint = localstack.get_url()
30
29
<testcontainers.localstack.LocalStackContainer object at 0x...>
31
30
32
31
The endpoint can be used to create a client with the boto3 library:
32
+
33
33
.. doctest::
34
34
35
35
>>> from testcontainers.localstack import LocalStackContainer
36
36
37
37
>>> with LocalStackContainer(image="localstack/localstack:0.11.4") as localstack:
38
- ... localstack.with_services("dynamodb", "lambda")
39
38
... dynamo_endpoint = localstack.get_url()
40
39
... dynamo_client = boto3.client("dynamodb", endpoint_url=dynamo_endpoint)
41
40
... scan_result = dynamo_client.scan(TableName='foo')
You can’t perform that action at this time.
0 commit comments