Skip to content

Commit

Permalink
fix (aws/lambda): add support for adding layers to lambda functions (#…
Browse files Browse the repository at this point in the history
…4952)

Co-authored-by: smaniyedath <shyam_maniyedath@intuit.com>
  • Loading branch information
shyamsfo and shyamsfo committed Sep 28, 2020
1 parent 0dad4bf commit 8c3f482
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Expand Up @@ -36,6 +36,7 @@ public class CreateLambdaFunctionConfigurationDescription
Integer timeout;
List<String> subnetIds;
List<String> securityGroupIds;
List<String> layers;
Map<String, String> envVariables;
Map<String, String> tags;
DeadLetterConfig deadLetterConfig;
Expand Down
Expand Up @@ -34,6 +34,7 @@ public class CreateLambdaFunctionDescription extends AbstractLambdaFunctionDescr
String role;
String runtime;
String appName;
List<String> layers;

Integer memorySize;
Integer timeout;
Expand Down
Expand Up @@ -81,6 +81,7 @@ private CreateFunctionResult createFunction() {
request.setRole(description.getRole());
request.setRuntime(description.getRuntime());
request.setTimeout(description.getTimeout());
request.setLayers(description.getLayers());

request.setCode(code);
request.setTags(objTag);
Expand Down
Expand Up @@ -63,6 +63,7 @@ private UpdateFunctionConfigurationResult updateFunctionConfigurationResult() {
.withRole(description.getRole())
.withTimeout(description.getTimeout())
.withDeadLetterConfig(description.getDeadLetterConfig())
.withLayers(description.getLayers())
.withVpcConfig(
new VpcConfig()
.withSecurityGroupIds(description.getSecurityGroupIds())
Expand Down

0 comments on commit 8c3f482

Please sign in to comment.