Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support proxies #7

Open
james-ovens opened this issue Mar 7, 2018 · 1 comment
Open

Does not support proxies #7

james-ovens opened this issue Mar 7, 2018 · 1 comment

Comments

@james-ovens
Copy link

I am using this to backup and restore dynamodb table data for a company that requires the use of a corporate proxy.

I managed to get it working with a proxy by editing the cli.js file by adding:
• const proxy = require('proxy-agent'); at line 6

• AWS.config.update({
httpOptions: { agent: proxy('http://127.0.0.1:3128') }
});
at line 64

Obviously this requires installing proxy-agent locally, and this will assume you are always using a proxy, so any actual solution will probably want to use the cli arguments to pass in the proxy address and use this to determine whether to add the proxy config to the AWS config or not.

I could open up a PR if I get a chance to implement a proper solution hopefully soon, but in the meantime this may help anyone else having the same problem.

This package is very useful though so thank you for creating it.

@mifi
Copy link
Owner

mifi commented May 20, 2018

Yes, PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants