1

Is there a way to force aws cli to use proxy only during the execution of a command at a particular step in my user data. The instance has both HTTP_PROXY and NO_PROXY set and NO_PROXY currently includes *.amazonaws.com. So, i technically want all other aws cli commands to skip proxy except for one command where i want to force using proxy.

I tried removing amazonaws.com from NO_PROXY list just before executing the command but that looks more like a hack than a proper solution.

Thanks

jim Mckein
  • 11
  • 1
  • 2
  • Isn't your question basically a duplicate of this? http://stackoverflow.com/questions/13998075/setting-environment-variable-for-one-program-call-in-bash-using-env – Mark B Dec 28 '16 at 16:40

0 Answers0