Serverless Deployment Behind Corporate Proxy


I have an aws project, and I’m trying to get sls deploy to work behind a corporate firewall, which requires a certificate.

by setting AWS_CA_BUNDLE to a specific .pem, I’m able to access aws through the aws cli (aws s3 ls, etc.) but I’m not sure how to make this work for Serverless. is there an environment variable that I can pass in the .pem file needed? I’m stuck with this serverless error:

ServerlessError: self signed certificate in certificate chain

***I used to get the same error with aws before setting the AWS_CA_BUNDLE***

Any help would be very appreciated!

1 Like

Same issue here. Did you find a solution? Are we so few people behind a corporate proxy?

I am still facing the same issue still. Any idea how to run this command behind proxy?

I have HTTPS_PROXY and HTTP_PROXY set in environment and NPM.

Serverless: Recoverable error occurred (read ECONNRESET), sleeping for ~7 seconds. Try 4 of 4
Serverless: [AWS s3 undefined 0.542s 3 retries] getObject({
Bucket: ‘*-serverless-us-east-1-deploys’,
Key: ‘stack_tags.json’