Skip to content

Commit 095a74d

Browse files
authored
quick fix: install missing dependencies into proxy container (#67)
1 parent 0f59c95 commit 095a74d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

aws-replicator/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ In addition to the proxy services configuration shown above, the following confi
115115
* `REPLICATOR_LOCALSTACK_HOST`: the target host to use when the proxy container connects to the LocalStack main container (automatically determined by default)
116116
* `REPLICATOR_PROXY_DOCKER_FLAGS`: additional flags that should be passed when creating the proxy Docker containers
117117

118+
**Note:** Due to some recent changes in the core framework, make sure to start up your LocalStack container with the `GATEWAY_SERVER=hypercorn` configuration enabled, for backwards compatibility. This will be fixed in an upcoming release.
119+
118120
## Resource Replicator CLI
119121

120122
The figure below illustrates how the extension can be used to replicate the state, e.g., an SQS queue and the messages contained in it, from AWS into your LocalStack instance.
@@ -150,6 +152,7 @@ localstack extensions install "git+https://github.com/localstack/localstack-exte
150152

151153
## Change Log
152154

155+
* `0.1.14`: Install missing dependencies into proxy container for localstack >=3.4 compatibility
153156
* `0.1.13`: Add compatibility with localstack >=3.4; add http2-server; migrate to localstack auth login
154157
* `0.1.12`: Modify aws credentials text field type to password
155158
* `0.1.11`: Fix broken imports after recent upstream CloudFormation changes

aws-replicator/aws_replicator/client/auth_proxy.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ def start_aws_auth_proxy_in_container(
327327
command = [
328328
"bash",
329329
"-c",
330-
f"{venv_activate}; pip install --upgrade --no-deps '{CLI_PIP_PACKAGE}'",
330+
# TODO: manually installing quart/h11/hypercorn as a dirty quick fix for now. To be fixed!
331+
f"{venv_activate}; pip install h11 hypercorn quart; pip install --upgrade --no-deps '{CLI_PIP_PACKAGE}'",
331332
]
332333
DOCKER_CLIENT.exec_in_container(container_name, command=command)
333334

aws-replicator/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = localstack-extension-aws-replicator
3-
version = 0.1.13
3+
version = 0.1.14
44
summary = LocalStack Extension: AWS replicator
55
description = Replicate AWS resources into your LocalStack instance
66
long_description = file: README.md

0 commit comments

Comments
 (0)