From 39cfdbf63527513d4761b5fd75effb007b8c73f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Pa=C3=9F?= <22845248+mpass99@users.noreply.github.com> Date: Fri, 1 Jul 2022 15:16:12 +0200 Subject: [PATCH] Apply suggestions from code review --- internal/environment/aws_environment.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/environment/aws_environment.go b/internal/environment/aws_environment.go index 5f742be..2e170fe 100644 --- a/internal/environment/aws_environment.go +++ b/internal/environment/aws_environment.go @@ -87,7 +87,8 @@ func (a *AWSEnvironment) CPULimit() uint { func (a *AWSEnvironment) SetCPULimit(_ uint) {} func (a *AWSEnvironment) MemoryLimit() uint { - return 0 + const memorySizeOfDeployedLambdaFunction = 2048 // configured /deploy/aws/template.yaml + return memorySizeOfDeployedLambdaFunction } func (a *AWSEnvironment) SetMemoryLimit(_ uint) { @@ -95,7 +96,7 @@ func (a *AWSEnvironment) SetMemoryLimit(_ uint) { } func (a *AWSEnvironment) NetworkAccess() (enabled bool, mappedPorts []uint16) { - return false, nil + return true, nil } func (a *AWSEnvironment) SetNetworkAccess(_ bool, _ []uint16) {