From 1a6d4ae090c230a21e02c060eeb30e65f62ab8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 14 Jan 2020 13:12:53 +0100 Subject: [PATCH] add reference to resource limits --- x-pack/functionbeat/manager/aws/template_builder.go | 1 + x-pack/functionbeat/manager/gcp/template_builder.go | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/functionbeat/manager/aws/template_builder.go b/x-pack/functionbeat/manager/aws/template_builder.go index aaa7e8c0d3b..ef8f718b67e 100644 --- a/x-pack/functionbeat/manager/aws/template_builder.go +++ b/x-pack/functionbeat/manager/aws/template_builder.go @@ -52,6 +52,7 @@ const ( // Package size limits for AWS, we should be a lot under this limit but // adding a check to make sure we never go over. + // Ref: https://docs.aws.amazon.com/lambda/latest/dg/limits.html packageCompressedLimit = 50 * 1000 * 1000 // 50MB packageUncompressedLimit = 250 * 1000 * 1000 // 250MB ) diff --git a/x-pack/functionbeat/manager/gcp/template_builder.go b/x-pack/functionbeat/manager/gcp/template_builder.go index 730956f5d50..1cbad561655 100644 --- a/x-pack/functionbeat/manager/gcp/template_builder.go +++ b/x-pack/functionbeat/manager/gcp/template_builder.go @@ -28,6 +28,7 @@ const ( functionName = locationTemplate + "/functions/%s" // full name of the functions // Package size limits for GCP provider + // Ref: https://cloud.google.com/functions/quotas packageCompressedLimit = 100 * 1000 * 1000 // 100MB packageUncompressedLimit = 500 * 1000 * 1000 // 500MB )