dcl-ops-lib 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/acceptDb.d.ts +1 -1
- package/acceptDb.js +5 -7
- package/package.json +1 -1
package/acceptDb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as aws from "@pulumi/aws";
|
|
2
2
|
export declare const acceptDbSecurityGroup: () => Promise<aws.ec2.GetSecurityGroupResult>;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const acceptDbSecurityGroupId: () => Promise<string>;
|
|
4
4
|
export default acceptDbSecurityGroup;
|
package/acceptDb.js
CHANGED
|
@@ -15,13 +15,11 @@ const values_1 = require("./values");
|
|
|
15
15
|
const withCache_1 = require("./withCache");
|
|
16
16
|
exports.acceptDbSecurityGroup = (0, withCache_1.default)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
17
|
const config = yield (0, values_1.getEnvConfiguration)();
|
|
18
|
-
return aws.ec2.getSecurityGroup({
|
|
18
|
+
return aws.ec2.getSecurityGroup({ id: config.dbSecurity });
|
|
19
|
+
}));
|
|
20
|
+
exports.acceptDbSecurityGroupId = (0, withCache_1.default)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const config = yield (0, values_1.getEnvConfiguration)();
|
|
22
|
+
return config.dbSecurity;
|
|
19
23
|
}));
|
|
20
|
-
function acceptDbSecurityGroupId() {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
return (yield (0, exports.acceptDbSecurityGroup)()).id;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
exports.acceptDbSecurityGroupId = acceptDbSecurityGroupId;
|
|
26
24
|
exports.default = exports.acceptDbSecurityGroup;
|
|
27
25
|
//# sourceMappingURL=acceptDb.js.map
|