File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- __version__ = "1.0.4 "
1+ __version__ = "1.0.5 "
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import logging
4+ import os
45import re
56import docker
67from 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
You can’t perform that action at this time.
0 commit comments