Skip to content

Commit 705ebc4

Browse files
authored
adjust config to support LOCALSTACK_AUTH_TOKEN in addition to legacy API keys (#48)
1 parent f707ed7 commit 705ebc4

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/aws-replicator.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Install LocalStack and extension
3232
env:
33-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
33+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
3434
run: |
3535
docker pull localstack/localstack-pro &
3636
docker pull public.ecr.aws/lambda/python:3.8 &
@@ -80,7 +80,7 @@ jobs:
8080
AWS_DEFAULT_REGION: us-east-1
8181
AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
8282
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
83-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
83+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
8484
run: |
8585
cd aws-replicator/example
8686
make test

aws-replicator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ localstack extensions install "git+https://github.com/localstack/localstack-exte
115115

116116
## Change Log
117117

118+
* `0.1.6`: Adjust config to support `LOCALSTACK_AUTH_TOKEN` in addition to legacy API keys
118119
* `0.1.5`: Minor fix to accommodate recent upstream changes
119120
* `0.1.4`: Fix imports of `bootstrap.auth` modules for v3.0 compatibility
120121
* `0.1.3`: Adjust code imports for recent LocalStack v3.0 module changes

aws-replicator/aws_replicator/client/auth_proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from localstack.utils.server.http2_server import run_server
3232
from localstack.utils.serving import Server
3333
from localstack.utils.strings import short_uid, to_bytes, to_str, truncate
34-
from localstack_ext.bootstrap.licensingv2 import ENV_LOCALSTACK_API_KEY
34+
from localstack_ext.bootstrap.licensingv2 import ENV_LOCALSTACK_API_KEY, ENV_LOCALSTACK_AUTH_TOKEN
3535
from requests import Response
3636

3737
from aws_replicator.client.utils import truncate_content
@@ -342,6 +342,7 @@ def start_aws_auth_proxy_in_container(
342342
"AWS_SESSION_TOKEN",
343343
"AWS_DEFAULT_REGION",
344344
ENV_LOCALSTACK_API_KEY,
345+
ENV_LOCALSTACK_AUTH_TOKEN,
345346
]
346347
env_vars = env_vars or os.environ
347348
env_vars = select_attributes(dict(env_vars), env_var_names)

aws-replicator/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = localstack-extension-aws-replicator
3-
version = 0.1.5
3+
version = 0.1.6
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)