Hi,
I just made a new plugin
https://www.npmjs.com/package/aws-cognito-idp-userpool-domain (it’s on the line to be published)
but I had noticed that when I’m behind the corporate proxy it just works when I add the lines below to the code:
var proxy = require('proxy-agent');
AWS.config.update({
httpOptions: { agent: proxy('http://username:password@internal.proxy.com') }
});
How can I reuse the proxy setting from Serverless framework in a way I do not need to add this code, and mainly the username and password?
I have noticed that even without credentials in the environment variables (https_proxy), serverless works fine. Why aws-sdk inside a plugin require credentials?
thanks!