From 109c3816c18c535efd391081089aa4e2ac6a35dd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:16:16 +0000 Subject: [PATCH 1/2] chore(deps): update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v3.11.0.3922 --- aws-kinesis-project/consumer/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-kinesis-project/consumer/pom.xml b/aws-kinesis-project/consumer/pom.xml index 74caf5ad..38043f02 100644 --- a/aws-kinesis-project/consumer/pom.xml +++ b/aws-kinesis-project/consumer/pom.xml @@ -26,7 +26,7 @@ 2.43.0 9.0.9 1.2.1 - 3.10.0.2594 + 3.11.0.3922 0.8.11 0.80 ${project.build.directory}/jacoco/test From 459f85b41def6c51c387f94b4dcd261c81100e39 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Wed, 13 Mar 2024 20:23:59 +0530 Subject: [PATCH 2/2] feat : fix docker script --- .../producer/.localstack/init-aws.sh | 18 +++++++++++------- .../producer/docker/docker-compose.yml | 3 +-- aws-kinesis-project/producer/pom.xml | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/aws-kinesis-project/producer/.localstack/init-aws.sh b/aws-kinesis-project/producer/.localstack/init-aws.sh index 227a75d6..fc53c3a3 100755 --- a/aws-kinesis-project/producer/.localstack/init-aws.sh +++ b/aws-kinesis-project/producer/.localstack/init-aws.sh @@ -4,17 +4,21 @@ awslocal kinesis create-stream --stream-name my-test-stream --shard-count 1 awslocal dynamodb create-table \ --table-name spring-stream-lock-registry \ ---attribute-definitions AttributeName=lockKey,AttributeType=S AttributeName=sortKey,AttributeType=S \ ---key-schema AttributeName=lockKey,KeyType=HASH AttributeName=sortKey,KeyType=RANGE \ +--attribute-definitions AttributeName=lockKey,AttributeType=S \ +--key-schema AttributeName=lockKey,KeyType=HASH \ --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ ---tags Key=Owner,Value=localstack +--tags Key=Owner,Value=localstack \ +--billing-mode PROVISIONED awslocal dynamodb create-table \ --table-name spring-stream-metadata \ ---attribute-definitions AttributeName=KEY,AttributeType=S \ ---key-schema AttributeName=KEY,KeyType=HASH \ +--attribute-definitions AttributeName=metadataKey,AttributeType=S \ +--key-schema AttributeName=metadataKey,KeyType=HASH \ --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ ---tags Key=Owner,Value=localstack +--tags Key=Owner,Value=localstack \ +--billing-mode PROVISIONED awslocal dynamodb list-tables -awslocal kinesis list-streams \ No newline at end of file +awslocal kinesis list-streams + +echo "LocalStack initialized successfully" diff --git a/aws-kinesis-project/producer/docker/docker-compose.yml b/aws-kinesis-project/producer/docker/docker-compose.yml index 96894695..9eef6925 100644 --- a/aws-kinesis-project/producer/docker/docker-compose.yml +++ b/aws-kinesis-project/producer/docker/docker-compose.yml @@ -6,11 +6,10 @@ services: ports: - "4566:4566" environment: - - SERVICES=kinesis, dynamodb + - SERVICES=kinesis, dynamodb, iam - DEFAULT_REGION=us-east-1 volumes: - "../.localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh" # ready hook - - localstack:/tmp/localstack volumes: localstack: diff --git a/aws-kinesis-project/producer/pom.xml b/aws-kinesis-project/producer/pom.xml index c53c749f..2b19b04e 100644 --- a/aws-kinesis-project/producer/pom.xml +++ b/aws-kinesis-project/producer/pom.xml @@ -217,7 +217,7 @@ - 1.18.1 + 1.19.2