From 1d75c021efcb1fb0b2c8571069da48ad881d8d67 Mon Sep 17 00:00:00 2001 From: Vardhan Thigle Date: Fri, 20 Dec 2024 09:17:43 +0000 Subject: [PATCH] Updating DynamoDB version --- .../integration-tests-against-emulator.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests-against-emulator.yaml b/.github/workflows/integration-tests-against-emulator.yaml index bcbf34674..3fae34b00 100644 --- a/.github/workflows/integration-tests-against-emulator.yaml +++ b/.github/workflows/integration-tests-against-emulator.yaml @@ -43,7 +43,7 @@ jobs: # set DynamoDB related environment variables AWS_ACCESS_KEY_ID: dummyId AWS_SECRET_ACCESS_KEY: dummyKey - AWS_REGION: dummyRegion + AWS_REGION: local DYNAMODB_ENDPOINT_OVERRIDE: http://localhost:8000 # sql server envs @@ -75,11 +75,20 @@ jobs: - 3306:3306 # needed because the mysql container does not provide a healthcheck options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + + # https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocalHistory.html + # Dynamodb 1.17.0 has deprecated java web shell. dynamodb_emulator: - image: amazon/dynamodb-local:1.16.0 + image: amazon/dynamodb-local:2.5.3 ports: - 8000:8000 - options: --workdir /home/dynamodblocal --health-cmd "curl --fail http://127.0.0.1:8000/shell/ || exit 1" --health-interval 10s --health-timeout 5s --health-retries 5 + - 8001:8000 + env: + AWS_ACCESS_KEY_ID: dummyId + AWS_SECRET_ACCESS_KEY: dummyKey + AWS_REGION: local + DYNAMODB_ENDPOINT_OVERRIDE: http://localhost:8000 + options: --workdir /home/dynamodblocal --health-cmd "dynamodb describe-limits --endpoint-url http://dynamodb-emulator:8000 --region local" --health-interval 10s --health-timeout 5s --health-retries 5 sqlserver: image: mcr.microsoft.com/mssql/server:2022-latest env: