Skip to content

Commit abe71ee

Browse files
committed
Release 1.0.5: configurable container name and auth token forwarding
1 parent 1b61e7f commit abe71ee

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class TestKinesis(unittest.TestCase):
4343
```
4444

4545
## Change Log
46+
* 1.0.5: Add support for configurable container name and auth token forwarding
4647
* 1.0.4: Fixes to LocalStack and Container modules
4748
* 1.0.3: Add auto_remove config option
4849
* 1.0.2: LocalStack Pro image set as default

localstack_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.4"
1+
__version__ = "1.0.5"

localstack_utils/container.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import logging
4+
import os
45
import re
56
import docker
67
from time import sleep
@@ -38,6 +39,8 @@ def create_localstack_container(
3839
):
3940
environment_variables = environment_variables or {}
4041
environment_variables["GATEWAY_LISTEN"] = gateway_listen
42+
if "LOCALSTACK_AUTH_TOKEN" not in environment_variables and os.environ.get("LOCALSTACK_AUTH_TOKEN"):
43+
environment_variables["LOCALSTACK_AUTH_TOKEN"] = os.environ["LOCALSTACK_AUTH_TOKEN"]
4144

4245
image_exists = (
4346
True if len(DOCKER_CLIENT.images.list(name=image_name)) else False

0 commit comments

Comments
 (0)