From 114c2221d326c2553304cf512b3f4ee605f13bb8 Mon Sep 17 00:00:00 2001 From: Joel Rojas Date: Tue, 8 Sep 2020 21:57:02 -0400 Subject: [PATCH] Fix error - lambda function with private directory dependencies in Windows --- lib/pip.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pip.js b/lib/pip.js index 7d1777a4..ab165deb 100644 --- a/lib/pip.js +++ b/lib/pip.js @@ -212,6 +212,8 @@ function installRequirements(targetFolder, serverless, options) { '-e', 'SSH_AUTH_SOCK=/tmp/ssh_sock' ); + chmod_cmd = ['chmod', '600', '/root/.ssh/id_rsa']; + pipCmds.unshift(chmod_cmd); } // If we want a download cache...