Skip to content

Commit d8ed709

Browse files
committed
minor fixes
1 parent f0f5daa commit d8ed709

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/aws-proxy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
3434
run: |
3535
set -e
36+
cd aws-proxy
3637
docker pull localstack/localstack-pro &
3738
docker pull public.ecr.aws/lambda/python:3.8 &
3839
@@ -49,7 +50,6 @@ jobs:
4950
# build and install extension
5051
localstack extensions init
5152
(
52-
cd aws-proxy
5353
make install
5454
. .venv/bin/activate
5555
pip install --upgrade --pre localstack localstack-ext
@@ -61,6 +61,11 @@ jobs:
6161
pip install awscli-local[ver1]
6262
pip install terraform-local
6363
64+
# Note: Install the same boto3 version as installed in the image. This is a small fix to avoid
65+
# assertion errors (missing `BucketArn` in S3 responses). TODO: to be fixed in a future iteration!
66+
version=$(docker run --entrypoint= --rm localstack/localstack-pro bash -c '. .venv/bin/activate; pip show boto3 | grep Version | cut -d" " -f2')
67+
(. .venv/bin/activate; pip install "boto3==$version")
68+
6469
find /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.*/site-packages/aws*
6570
ls -la /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.*/site-packages/aws*
6671
DEBUG=1 GATEWAY_SERVER=hypercorn localstack start -d

aws-proxy/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ dependencies = [
1818

1919
[project.optional-dependencies]
2020
test=[
21-
# Note: Currently requires a version pin, to avoid assertion errors (missing
22-
# `BucketARN` response property) TODO: to be fixed in a future iteration!
23-
"boto3==1.40.55",
2421
# couple of dependencies required to import localstack test tools
2522
"localstack-core[base-runtime]>4.9",
2623
"moto-ext",

0 commit comments

Comments
 (0)