Skip to content

Commit 01c4f2f

Browse files
Misc/dev setup changes (#26)
* Pin localstack image version. * Use http://localstack:4566/ as default endpoint for lambda <-> communication within localstack. * Pin sam/build-python image version. * Formatting fix. * Shorten env var name LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT
1 parent 8d11a12 commit 01c4f2f

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/stage-4-acceptance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
needs: environment-set-up
112112
timeout-minutes: 10
113113
env:
114-
LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT: http://localstack:4566/
114+
LOCALSTACK_INTERNAL_ENDPOINT: http://localstack:4566/
115115
steps:
116116
- name: "Checkout code"
117117
uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pytest-docker = "^3.2.0"
5454
stamina = "^25.1.0"
5555

5656
[tool.poetry-plugin-lambda-build]
57-
docker-image = "public.ecr.aws/sam/build-python3.13:latest-x86_64"
57+
docker-image = "public.ecr.aws/sam/build-python3.13:1.135-x86_64"
5858
docker-network = "host"
5959
docker-platform = "linux/x86_64"
6060
package-artifact-path = "dist/lambda.zip"

tests/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
localstack:
33
# container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
4-
image: localstack/localstack
4+
image: localstack/localstack:4.2.0
55
ports:
66
- "4566:4566" # LocalStack Gateway
77
- "4510-4559:4510-4559" # external services port range

tests/integration/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def flask_function(lambda_client: BaseClient) -> str:
9292
Timeout=180,
9393
Environment={
9494
"Variables": {
95-
"DYNAMODB_ENDPOINT": os.getenv(
96-
"LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT", "http://host.docker.internal:4566"
97-
),
95+
"DYNAMODB_ENDPOINT": os.getenv("LOCALSTACK_INTERNAL_ENDPOINT", "http://localstack:4566/"),
9896
"AWS_REGION": AWS_REGION,
9997
}
10098
},

0 commit comments

Comments
 (0)