Skip to content

Commit

Permalink
fix(lambda): Fixes create lambda from failing when DLQ is not provided (
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncoffman committed Aug 7, 2020
1 parent 22feb2a commit 80d81be
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -96,7 +96,9 @@ private CreateFunctionResult createFunction() {
.withSecurityGroupIds(description.getSecurityGroupIds())
.withSubnetIds(description.getSubnetIds()));
}
request.setDeadLetterConfig(description.getDeadLetterConfig());
if (!description.getDeadLetterConfig().getTargetArn().isEmpty()) {
request.setDeadLetterConfig(description.getDeadLetterConfig());
}
request.setKMSKeyArn(description.getEncryptionKMSKeyArn());
request.setTracingConfig(description.getTracingConfig());

Expand Down

0 comments on commit 80d81be

Please sign in to comment.