@mbc-cqrs-serverless/cli 0.1.27-beta.0 → 0.1.29-beta.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbc-cqrs-serverless/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29-beta.0",
|
|
4
4
|
"description": "a CLI to get started with MBC CQRS serverless framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mbc",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@faker-js/faker": "^8.3.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "90593825d62af13c3c236e784731f31ff1d24d02"
|
|
53
53
|
}
|
|
@@ -72,9 +72,9 @@ export class InfraStack extends cdk.Stack {
|
|
|
72
72
|
mfa: cdk.aws_cognito.Mfa.OFF,
|
|
73
73
|
accountRecovery: cdk.aws_cognito.AccountRecovery.NONE,
|
|
74
74
|
customAttributes: {
|
|
75
|
-
|
|
75
|
+
tenant_code: new cdk.aws_cognito.StringAttribute({
|
|
76
76
|
mutable: true,
|
|
77
|
-
maxLen:
|
|
77
|
+
maxLen: 50,
|
|
78
78
|
}),
|
|
79
79
|
company_code: new cdk.aws_cognito.StringAttribute({
|
|
80
80
|
mutable: true,
|
|
@@ -84,10 +84,7 @@ export class InfraStack extends cdk.Stack {
|
|
|
84
84
|
mutable: true,
|
|
85
85
|
maxLen: 2024,
|
|
86
86
|
}),
|
|
87
|
-
|
|
88
|
-
mutable: true,
|
|
89
|
-
maxLen: 20,
|
|
90
|
-
}),
|
|
87
|
+
roles: new cdk.aws_cognito.StringAttribute({ mutable: true }),
|
|
91
88
|
},
|
|
92
89
|
email: cdk.aws_cognito.UserPoolEmail.withCognito(),
|
|
93
90
|
deletionProtection: true,
|
|
@@ -47,7 +47,11 @@ export class PipelineStack extends Stack {
|
|
|
47
47
|
|
|
48
48
|
const testStep = new CodeBuildStep(`${prefix}Test`, {
|
|
49
49
|
projectName: `${prefix}Test`,
|
|
50
|
-
installCommands: [
|
|
50
|
+
installCommands: [
|
|
51
|
+
'npm i -g pnpm',
|
|
52
|
+
'npm ci',
|
|
53
|
+
'pnpm --dir ./infra install --frozen-lockfile',
|
|
54
|
+
],
|
|
51
55
|
commands: ['npm run test', 'npm --prefix ./infra run test'],
|
|
52
56
|
primaryOutputDirectory: 'report',
|
|
53
57
|
partialBuildSpec: BuildSpec.fromObject({
|
|
@@ -71,8 +75,9 @@ export class PipelineStack extends Stack {
|
|
|
71
75
|
testOut: testStep,
|
|
72
76
|
},
|
|
73
77
|
commands: [
|
|
78
|
+
'npm i -g pnpm',
|
|
74
79
|
'cd infra',
|
|
75
|
-
'
|
|
80
|
+
'pnpm install --frozen-lockfile',
|
|
76
81
|
'npm run build',
|
|
77
82
|
'npx cdk synth ' + id + ' -e',
|
|
78
83
|
],
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
"Name": "email",
|
|
11
11
|
"Value": "admin@test.com"
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"Name": "custom:tenant_code",
|
|
15
|
+
"Value": "mbc"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"Name": "custom:company_code",
|
|
19
|
+
"Value": "00000"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"Name": "custom:member_id",
|
|
23
|
+
"Value": "MEMBER#mbc#00000#99999"
|
|
24
|
+
},
|
|
13
25
|
{
|
|
14
26
|
"Name": "custom:roles",
|
|
15
27
|
"Value": "[{\"role\":\"system_admin\"}]"
|
|
@@ -248,6 +260,39 @@
|
|
|
248
260
|
"MinValue": "0"
|
|
249
261
|
}
|
|
250
262
|
},
|
|
263
|
+
{
|
|
264
|
+
"Name": "custom:tenant_code",
|
|
265
|
+
"AttributeDataType": "String",
|
|
266
|
+
"DeveloperOnlyAttribute": false,
|
|
267
|
+
"Mutable": true,
|
|
268
|
+
"Required": false,
|
|
269
|
+
"StringAttributeConstraints": {
|
|
270
|
+
"MinLength": "0",
|
|
271
|
+
"MaxLength": "50"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"Name": "custom:company_code",
|
|
276
|
+
"AttributeDataType": "String",
|
|
277
|
+
"DeveloperOnlyAttribute": false,
|
|
278
|
+
"Mutable": true,
|
|
279
|
+
"Required": false,
|
|
280
|
+
"StringAttributeConstraints": {
|
|
281
|
+
"MinLength": "0",
|
|
282
|
+
"MaxLength": "50"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"Name": "custom:member_id",
|
|
287
|
+
"AttributeDataType": "String",
|
|
288
|
+
"DeveloperOnlyAttribute": false,
|
|
289
|
+
"Mutable": true,
|
|
290
|
+
"Required": false,
|
|
291
|
+
"StringAttributeConstraints": {
|
|
292
|
+
"MinLength": "0",
|
|
293
|
+
"MaxLength": "2048"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
251
296
|
{
|
|
252
297
|
"Name": "custom:roles",
|
|
253
298
|
"AttributeDataType": "String",
|
|
@@ -255,8 +300,8 @@
|
|
|
255
300
|
"Mutable": true,
|
|
256
301
|
"Required": false,
|
|
257
302
|
"StringAttributeConstraints": {
|
|
258
|
-
"MinLength": "
|
|
259
|
-
"MaxLength": "
|
|
303
|
+
"MinLength": "0",
|
|
304
|
+
"MaxLength": "2048"
|
|
260
305
|
}
|
|
261
306
|
}
|
|
262
307
|
],
|