1

I have environment variables, eg. HTTPS_PROXY, set. I can simply do aws s3 ls s3://bucket/key.. to list S3 through proxy.

How can I achieve the same in aws-sdk-cpp?

ChromeHearts
  • 1,693
  • 1
  • 17
  • 27

1 Answers1

3

I finally figured it out myself, here is an example

Aws::Client::ClientConfiguration cconfig;
cconfig.proxyHost = "localhost";
cconfig.proxyPort = 1234;
cconfig.proxyScheme = Aws::Http::Scheme::HTTPS;
Aws::S3::S3Client(cconfig);
ChromeHearts
  • 1,693
  • 1
  • 17
  • 27