Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Simply add the following dependency to your `pom.xml` file:
<dependency>
<groupId>cloud.localstack</groupId>
<artifactId>localstack-utils</artifactId>
<version>0.2.21</version>
<version>0.2.22</version>
</dependency>
```

Expand Down Expand Up @@ -108,6 +108,7 @@ make build

## Change Log

* v0.2.22: Fix sqs event mapping for new event format, some test fixes
* v0.2.21: Bump version of AWS SDK v1; add AWS SDK v2 sync clients to TestUtils; add docker executable path under homebrew
* v0.2.20: Fix extracting container logs for LocalStack startup check
* v0.2.19: Bump version of log4j to 2.17.0 to fix further vulnerabilities related to recent CVE
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>cloud.localstack</groupId>
<artifactId>localstack-utils</artifactId>
<packaging>jar</packaging>
<version>0.2.21</version>
<version>0.2.22</version>
<name>localstack-utils</name>

<description>Java utilities for the LocalStack platform.</description>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/cloud/localstack/LambdaExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -104,7 +105,7 @@ public static void main(String[] args) throws Exception {
inputObject = DDBEventParser.parse(records);
} else if (records.stream().anyMatch(record -> record.containsKey("s3"))) {
inputObject = S3EventParser.parse(records);
} else if (records.stream().anyMatch(record -> record.containsKey("sqs"))) {
} else if (records.stream().anyMatch(record -> Objects.equals(record.get("eventSource"), "aws:sqs"))) {
inputObject = reader.readValue(fileContent, SQSEvent.class);
}
}
Expand Down