dcl-ops-lib 5.26.4 → 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.
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createSecurityGroupFunction = void 0;
13
- const awsx = require("@pulumi/awsx");
14
- function createSecurityGroupFunction(name, id) {
15
- let securityGroupOutput;
16
- let securityGroupPromise;
17
- function getSecurityGroup() {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- if (!securityGroupOutput) {
20
- if (!securityGroupPromise) {
21
- securityGroupPromise = new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
22
- try {
23
- resolve(awsx.ec2.SecurityGroup.fromExistingId(name, id));
24
- }
25
- catch (e) {
26
- reject(e);
27
- }
28
- }));
29
- return yield securityGroupPromise;
30
- }
31
- else {
32
- return yield securityGroupPromise;
33
- }
34
- }
35
- else {
36
- return securityGroupOutput;
37
- }
38
- });
39
- }
40
- function getSecurityGroupId() {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- return (yield getSecurityGroup()).id;
43
- });
44
- }
45
- return {
46
- getSecurityGroup: getSecurityGroup,
47
- getSecurityGroupId: getSecurityGroupId
48
- };
49
- }
50
- exports.createSecurityGroupFunction = createSecurityGroupFunction;
51
- //# sourceMappingURL=getSecurityGroup.js.map
@@ -1,2 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- export declare function setupDatabasePermissions(databaseName: string, databaseUsername: pulumi.Output<string>, databasePassword: pulumi.Output<string>): void;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setupDatabasePermissions = void 0;
4
- function setupDatabasePermissions(databaseName, databaseUsername, databasePassword) {
5
- // Creating users in terraform+pulumi+aws+postgres is utterly broken.
6
- // Need to do this manually.
7
- //
8
- // CREATE DATABASE databaseName;
9
- // CREATE ROLE databaseUsername WITH LOGIN PASSWORD 'password';
10
- // GRANT ALL PRIVILEGES ON DATABASE databaseUsername TO databaseUsername;
11
- throw new Error(`You need to do the DB setup manually. Sorry about it!
12
- Please connect to the db through the bastion node and run:
13
- CREATE DATABASE databaseName;
14
- CREATE ROLE databaseUsername WITH LOGIN PASSWORD 'password';
15
- GRANT ALL PRIVILEGES ON DATABASE databaseUsername TO databaseUsername;`);
16
- }
17
- exports.setupDatabasePermissions = setupDatabasePermissions;
18
- //# sourceMappingURL=setupDatabasePermissions.js.map