Skip to content

Commit

Permalink
feat(cdk): use existing standard for importing https module
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Epstein committed Dec 20, 2019
1 parent 686e6c2 commit 0a7b872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/util/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as cxapi from '@aws-cdk/cx-api';
import * as AWS from 'aws-sdk';
import * as child_process from 'child_process';
import * as fs from 'fs-extra';
import * as https from 'https';
import * as os from 'os';
import * as path from 'path';
import * as util from 'util';
Expand Down Expand Up @@ -204,7 +205,6 @@ export class SDK implements ISDK {
}
if (options.caBundlePath) {
debug('Using ca bundle path: %s', options.caBundlePath);
const https = require('https');
httpOptions.agent = new https.Agent({ca: await readIfPossible(options.caBundlePath)});
}
config.httpOptions = httpOptions;
Expand Down

0 comments on commit 0a7b872

Please sign in to comment.