dcl-ops-lib 5.17.0
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/README.md +6 -0
- package/StaticWebsite.d.ts +24 -0
- package/StaticWebsite.js +3 -0
- package/acceptAlb.d.ts +4 -0
- package/acceptAlb.js +27 -0
- package/acceptBastion.d.ts +4 -0
- package/acceptBastion.js +27 -0
- package/acceptDb.d.ts +4 -0
- package/acceptDb.js +27 -0
- package/accessTheInternet.d.ts +6 -0
- package/accessTheInternet.js +38 -0
- package/alb.d.ts +14 -0
- package/alb.js +34 -0
- package/buildStatic.d.ts +15 -0
- package/buildStatic.js +169 -0
- package/certificate.d.ts +2 -0
- package/certificate.js +42 -0
- package/cloudflare.d.ts +24 -0
- package/cloudflare.js +72 -0
- package/cloudwatchLogs.d.ts +2 -0
- package/cloudwatchLogs.js +34 -0
- package/createBucketWithUser.d.ts +11 -0
- package/createBucketWithUser.js +59 -0
- package/createFargateTask.d.ts +100 -0
- package/createFargateTask.js +321 -0
- package/createImageFromContext.d.ts +12 -0
- package/createImageFromContext.js +24 -0
- package/domain.d.ts +10 -0
- package/domain.js +49 -0
- package/exposePublicService.d.ts +26 -0
- package/exposePublicService.js +105 -0
- package/getAmi.d.ts +7 -0
- package/getAmi.js +35 -0
- package/getDomainAndSubdomain.d.ts +4 -0
- package/getDomainAndSubdomain.js +22 -0
- package/getImageRegistryAndCredentials.d.ts +6 -0
- package/getImageRegistryAndCredentials.js +33 -0
- package/getSecurityGroup.d.ts +6 -0
- package/getSecurityGroup.js +51 -0
- package/lambda.d.ts +19 -0
- package/lambda.js +149 -0
- package/network.d.ts +3 -0
- package/network.js +17 -0
- package/package.json +37 -0
- package/secrets.d.ts +3 -0
- package/secrets.js +12 -0
- package/setupDatabasePermissions.d.ts +2 -0
- package/setupDatabasePermissions.js +18 -0
- package/stack.d.ts +3 -0
- package/stack.js +22 -0
- package/supra.d.ts +7 -0
- package/supra.js +41 -0
- package/utils.d.ts +1 -0
- package/utils.js +11 -0
- package/values.d.ts +11 -0
- package/values.js +51 -0
- package/vpc.d.ts +3 -0
- package/vpc.js +28 -0
- package/withCache.d.ts +1 -0
- package/withCache.js +14 -0
package/values.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Subnet } from '@pulumi/awsx/ec2';
|
|
2
|
+
export declare type EnvironmentValues = {
|
|
3
|
+
defaultSecurityGroupId: string;
|
|
4
|
+
publicSubnets: Subnet[];
|
|
5
|
+
privateSubnets: Subnet[];
|
|
6
|
+
internalSubnets: Subnet[];
|
|
7
|
+
acceptAlb: string;
|
|
8
|
+
acceptBastion: string;
|
|
9
|
+
dbSecurity: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function getEnvConfiguration(): Promise<EnvironmentValues>;
|
package/values.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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.getEnvConfiguration = void 0;
|
|
13
|
+
const supra_1 = require("./supra");
|
|
14
|
+
const vpc_1 = require("./vpc");
|
|
15
|
+
let env;
|
|
16
|
+
let partial;
|
|
17
|
+
function getEnvConfiguration() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
if (env === undefined) {
|
|
20
|
+
if (partial === undefined) {
|
|
21
|
+
partial = new Promise(function (resolve, reject) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
try {
|
|
24
|
+
const innerEnv = {
|
|
25
|
+
defaultSecurityGroupId: yield supra_1.supra.getOutputValue('acceptBastionSecurityGroupId'),
|
|
26
|
+
publicSubnets: yield (yield (0, vpc_1.vpc)()).publicSubnets,
|
|
27
|
+
privateSubnets: yield (yield (0, vpc_1.vpc)()).privateSubnets,
|
|
28
|
+
internalSubnets: yield (yield (0, vpc_1.vpc)()).isolatedSubnets,
|
|
29
|
+
acceptAlb: yield supra_1.supra.getOutputValue('acceptAlbSecurityGroupId'),
|
|
30
|
+
acceptBastion: yield supra_1.supra.getOutputValue('acceptBastionSecurityGroupId'),
|
|
31
|
+
dbSecurity: yield supra_1.supra.getOutputValue('acceptDbSecurityGroupId'),
|
|
32
|
+
};
|
|
33
|
+
return resolve(innerEnv);
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
reject(e);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
env = yield partial;
|
|
41
|
+
return env;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return yield partial;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return env;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.getEnvConfiguration = getEnvConfiguration;
|
|
51
|
+
//# sourceMappingURL=values.js.map
|
package/vpc.d.ts
ADDED
package/vpc.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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.getVpc = exports.vpc = void 0;
|
|
13
|
+
const awsx = require("@pulumi/awsx");
|
|
14
|
+
const supra_1 = require("./supra");
|
|
15
|
+
let vpcReference;
|
|
16
|
+
function vpc() {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
if (!vpcReference) {
|
|
19
|
+
vpcReference = awsx.ec2.Vpc.fromExistingIds(`vpc-reference`, {
|
|
20
|
+
vpcId: yield supra_1.supra.getOutputValue('vpcId')
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return vpcReference;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.vpc = vpc;
|
|
27
|
+
exports.getVpc = vpc;
|
|
28
|
+
//# sourceMappingURL=vpc.js.map
|
package/withCache.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function withCache<R>(handler: () => R): () => R;
|
package/withCache.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function withCache(handler) {
|
|
4
|
+
const empty = Symbol('@empty');
|
|
5
|
+
let cache = empty;
|
|
6
|
+
return () => {
|
|
7
|
+
if (cache === empty) {
|
|
8
|
+
cache = handler();
|
|
9
|
+
}
|
|
10
|
+
return cache;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
exports.default = withCache;
|
|
14
|
+
//# sourceMappingURL=withCache.js.map
|