@goldstack/template-user-management-cli 0.1.46 → 0.1.48
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/dist/src/templateUserManagementCli.js +1 -1
- package/dist/src/templateUserManagementCli.js.map +1 -1
- package/dist/src/templateUserManagementDeploy.d.ts +2 -2
- package/dist/src/templateUserManagementDeploy.d.ts.map +1 -1
- package/dist/src/templateUserManagementDeploy.js +21 -2
- package/dist/src/templateUserManagementDeploy.js.map +1 -1
- package/package.json +5 -2
|
@@ -31,7 +31,7 @@ const run = async (args) => {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
if (command === 'deploy') {
|
|
34
|
-
await (0, templateUserManagementDeploy_1.deployCli)(config, [
|
|
34
|
+
await (0, templateUserManagementDeploy_1.deployCli)(config, packageConfig.getDeployment(opArgs[0]));
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
throw new Error('Unknown command: ' + command);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateUserManagementCli.js","sourceRoot":"","sources":["../../src/templateUserManagementCli.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAyE;AACzE,oDAA+C;AAC/C,gEAA2D;AAC3D,iFAA2D;AAC3D,wEAAiE;AACjE,0EAAgE;AAKhE,kDAA0B;AAEnB,MAAM,GAAG,GAAG,KAAK,EAAE,IAAc,EAAiB,EAAE;IACzD,MAAM,IAAA,mBAAO,EAAC,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,IAAA,wBAAQ,EAAC;YAC1B,KAAK,EAAL,eAAK;YACL,cAAc,EAAE,IAAA,mCAAmB,GAAE;YACrC,aAAa,EAAE,IAAA,+BAAa,GAAE;SAC/B,CAAC;aACC,IAAI,EAAE;aACN,KAAK,EAAE,CAAC;QAEX,MAAM,aAAa,GAAG,IAAI,oCAAa,CAGrC;YACA,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;QACH,MA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OAAO,EAAE,CAAC;YACxB,MAAM,IAAA,qCAAe,EAAC,MAAM,CAAC,CAAC;YAC9B,OAAO;QACT,CAAC;QAED,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;YACzB,MAAM,IAAA,wCAAS,EAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAChE,OAAO;QACT,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,OAAO,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAhCW,QAAA,GAAG,OAgCd"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UserManagementConfiguration } from '@goldstack/template-user-management';
|
|
2
|
-
export declare const deployCli: (config: UserManagementConfiguration,
|
|
1
|
+
import { UserManagementConfiguration, UserManagementDeployment } from '@goldstack/template-user-management';
|
|
2
|
+
export declare const deployCli: (config: UserManagementConfiguration, deployment: UserManagementDeployment) => Promise<void>;
|
|
3
3
|
//# sourceMappingURL=templateUserManagementDeploy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateUserManagementDeploy.d.ts","sourceRoot":"","sources":["../../src/templateUserManagementDeploy.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"templateUserManagementDeploy.d.ts","sourceRoot":"","sources":["../../src/templateUserManagementDeploy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAS7C,eAAO,MAAM,SAAS,WACZ,2BAA2B,cACvB,wBAAwB,KACnC,OAAO,CAAC,IAAI,CA4Bd,CAAC"}
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deployCli = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const infra_aws_1 = require("@goldstack/infra-aws");
|
|
5
|
+
const infra_1 = require("@goldstack/infra");
|
|
6
|
+
const utils_aws_lambda_1 = require("@goldstack/utils-aws-lambda");
|
|
7
|
+
const deployCli = async (config, deployment) => {
|
|
8
|
+
const deploymentState = (0, infra_1.readDeploymentState)('./', deployment.name);
|
|
9
|
+
const preSignUpFunctionName = (0, infra_1.readTerraformStateVariable)(deploymentState, 'pre_sign_up_lambda_function_name');
|
|
10
|
+
const postConfirmationLambdaName = (0, infra_1.readTerraformStateVariable)(deploymentState, 'post_confirmation_lambda_function_name');
|
|
11
|
+
await (0, utils_aws_lambda_1.deployFunction)({
|
|
12
|
+
functionName: preSignUpFunctionName,
|
|
13
|
+
awsCredentials: await (0, infra_aws_1.getAWSUser)(deployment.awsUser),
|
|
14
|
+
lambdaPackageDir: './distLambda/preSignUp',
|
|
15
|
+
region: deployment.awsRegion,
|
|
16
|
+
targetArchiveName: './distLambda/preSignUp.zip',
|
|
17
|
+
});
|
|
18
|
+
await (0, utils_aws_lambda_1.deployFunction)({
|
|
19
|
+
functionName: postConfirmationLambdaName,
|
|
20
|
+
awsCredentials: await (0, infra_aws_1.getAWSUser)(deployment.awsUser),
|
|
21
|
+
lambdaPackageDir: './distLambda/postConfirmation',
|
|
22
|
+
region: deployment.awsRegion,
|
|
23
|
+
targetArchiveName: './distLambda/postConfirmation.zip',
|
|
24
|
+
});
|
|
6
25
|
};
|
|
7
26
|
exports.deployCli = deployCli;
|
|
8
27
|
//# sourceMappingURL=templateUserManagementDeploy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateUserManagementDeploy.js","sourceRoot":"","sources":["../../src/templateUserManagementDeploy.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"templateUserManagementDeploy.js","sourceRoot":"","sources":["../../src/templateUserManagementDeploy.ts"],"names":[],"mappings":";;;AAKA,oDAAkD;AAClD,4CAI0B;AAC1B,kEAA6D;AAEtD,MAAM,SAAS,GAAG,KAAK,EAC5B,MAAmC,EACnC,UAAoC,EACrB,EAAE;IACjB,MAAM,eAAe,GAAG,IAAA,2BAAmB,EAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAEnE,MAAM,qBAAqB,GAAG,IAAA,kCAA0B,EACtD,eAAe,EACf,kCAAkC,CACnC,CAAC;IAEF,MAAM,0BAA0B,GAAG,IAAA,kCAA0B,EAC3D,eAAe,EACf,wCAAwC,CACzC,CAAC;IAEF,MAAM,IAAA,iCAAc,EAAC;QACnB,YAAY,EAAE,qBAAqB;QACnC,cAAc,EAAE,MAAM,IAAA,sBAAU,EAAC,UAAU,CAAC,OAAO,CAAC;QACpD,gBAAgB,EAAE,wBAAwB;QAC1C,MAAM,EAAE,UAAU,CAAC,SAAS;QAC5B,iBAAiB,EAAE,4BAA4B;KAChD,CAAC,CAAC;IAEH,MAAM,IAAA,iCAAc,EAAC;QACnB,YAAY,EAAE,0BAA0B;QACxC,cAAc,EAAE,MAAM,IAAA,sBAAU,EAAC,UAAU,CAAC,OAAO,CAAC;QACpD,gBAAgB,EAAE,+BAA+B;QACjD,MAAM,EAAE,UAAU,CAAC,SAAS;QAC5B,iBAAiB,EAAE,mCAAmC;KACvD,CAAC,CAAC;AACL,CAAC,CAAC;AA/BW,QAAA,SAAS,aA+BpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/template-user-management-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "Command line tools for User Management template",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@goldstack/
|
|
45
|
+
"@goldstack/infra": "0.4.22",
|
|
46
|
+
"@goldstack/infra-aws": "0.4.32",
|
|
47
|
+
"@goldstack/template-user-management": "0.1.45",
|
|
48
|
+
"@goldstack/utils-aws-lambda": "0.3.42",
|
|
46
49
|
"@goldstack/utils-cli": "0.3.16",
|
|
47
50
|
"@goldstack/utils-docker": "0.4.23",
|
|
48
51
|
"@goldstack/utils-log": "0.3.18",
|