serverless-vpc-discovery 5.0.1 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,11 +18,11 @@ const client_ec2_1 = require("@aws-sdk/client-ec2");
|
|
18
18
|
const globals_1 = __importDefault(require("../globals"));
|
19
19
|
class EC2Wrapper {
|
20
20
|
constructor(credentials) {
|
21
|
-
this.ec2 = new client_ec2_1.EC2Client(
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
this.ec2 = new client_ec2_1.EC2Client({
|
22
|
+
credentials,
|
23
|
+
region: globals_1.default.getRegion(),
|
24
|
+
retryStrategy: globals_1.default.getRetryStrategy()
|
25
|
+
});
|
26
26
|
}
|
27
27
|
/**
|
28
28
|
* Returns the promise that contains the vpc list
|