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 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