@izara_project/izara-core-generate-service-code 1.0.70 → 1.0.72
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 +3 -3
- package/src/compile/loadSchemas.js +69 -1
- package/src/emit/coreFunction/emitCoreFunctionArtifacts.js +171 -44
- package/src/emit/coreFunction/templates/GenerateSeedDataDynamo_HdrInv.ejs +4 -1
- package/src/emit/coreFunction/templates/GenerateSeedDataGraphData_HdrInv.ejs +4 -1
- package/src/emit/coreFunction/templates/GenerateSeedDataGraphSchema_HdrInv.ejs +4 -1
- package/src/emit/coreFunction/templates/GenerateSeedDataGraphSchema_Main.ejs +10 -2
- package/src/emit/coreFunction/templates/GeneratedGraphNodeSchemas.ejs +17 -17
- package/src/emit/coreFunction/templates/GeneratedGraphRelSchemas.ejs +6 -6
- package/src/emit/coreFunction/templates/GeneratedTableConfigs.ejs +12 -12
- package/src/emit/coreFunction/templates/InitialSetupConfig.ejs +195 -58
- package/src/emit/coreFunction/templates/InitialSetupRunner.ejs +175 -0
- package/src/emit/coreFunction/templates/InitialSetupRunner_initialSetup.ejs +9 -0
- package/src/emit/coreFunction/templates/InitialSetupRunner_seedDynamo.ejs +22 -0
- package/src/emit/coreFunction/templates/InitialSetupRunner_seedGraph.ejs +8 -0
- package/src/emit/coreFunction/templates/InitialSetupRunner_seedRemove.ejs +5 -0
- package/src/emit/coreFunction/templates/InitialSetupRunner_uploadSchema.ejs +33 -0
- package/src/emit/coreFunction/templates/InitialSetup_Main.ejs +9 -11
- package/src/emit/coreFunction/templates/UploadSchema_HdrInv.ejs +1 -3
- package/src/emit/coreFunction/templates/UploadSchema_Main.ejs +1 -1
- package/src/emit/crud/templates/CreateEndpoint_Main.ejs +1 -1
- package/src/emit/crud/templates/DeleteEndpoint_Main.ejs +1 -1
- package/src/emit/crud/templates/FlowMain_Wbs.ejs +1 -2
- package/src/emit/crud/templates/GetEndpoint_Main.ejs +1 -1
- package/src/emit/crud/templates/GetRangeEndpoint_Main.ejs +1 -1
- package/src/emit/crud/templates/UpdateEndpoint_Main.ejs +1 -1
- package/src/emit/custom/emitCustomFlowApplicationArtifacts.js +4 -1
- package/src/emit/custom/templates/FlowEndpoint_Main.ejs +2 -2
- package/src/emit/custom/templates/FlowStep_Main.ejs +1 -1
- package/src/emit/custom/templates/s3/CreateObject_Main.ejs +1 -1
- package/src/emit/custom/templates/s3/ReservedLimit_Main.ejs +1 -1
- package/src/emit/custom/templates/triggerCache/CheckTriggerCache_HdrSqs.ejs +2 -2
- package/src/emit/relationship/templates/ChangeRelationship_Main.ejs +1 -1
- package/src/emit/relationship/templates/CreateRelationship_Main.ejs +1 -1
- package/src/emit/relationship/templates/DeleteRelationship_Main.ejs +1 -1
- package/src/emit/relationship/templates/GetRelationship_Main.ejs +53 -32
- package/src/emit/relationship/templates/MoveRelationship_Main.ejs +1 -1
- package/src/emit/relationship/templates/UpdateRelationship_Main.ejs +1 -1
- package/src/emit/resource/emitResourceArtifacts.js +65 -21
- package/src/emit/resource/templates/DynamoDBTable_Yaml.ejs +18 -18
- package/src/emit/resource/templates/FlowOut_Yaml.ejs +5 -5
- package/src/emit/resource/templates/GeneratedLambdaRoleServiceConfig.ejs +9 -10
- package/src/emit/resource/templates/ResourceBeforeLogicalYaml.ejs +44 -44
- package/src/emit/resource/templates/ResourceSqsYaml.ejs +36 -36
- package/src/emit/resource/templates/ResourceYaml.ejs +48 -48
- package/src/emit/resource/templates/S3Bucket_Yaml.ejs +0 -1
- package/src/emit/resource/templates/S3Subscription_Yaml.ejs +6 -6
- package/src/emit/resource/templates/SharedResource_Yaml.ejs +4 -4
- package/src/emit/resource/templates/SystemDynamoDB_Yaml.ejs +115 -115
- package/src/emit/resource/templates/WebSocketSubscription_Yaml.ejs +6 -6
- package/src/emit/shared/templates/FindData_HdrSqs.ejs +1 -1
- package/src/emit/shared/templates/FlowHandler_HdrApi.ejs +3 -1
- package/src/emit/shared/templates/FlowHandler_HdrDsq.ejs +5 -2
- package/src/emit/shared/templates/FlowHandler_HdrInv.ejs +3 -1
- package/src/emit/shared/templates/FlowHandler_HdrSqs.ejs +5 -2
- package/src/emit/shared/templates/PaginateProcessLogical_HdrDsq.ejs +1 -1
- package/src/emit/shared/templates/PaginateProcessLogical_HdrSqs.ejs +1 -1
- package/src/emit/shared/templates/PaginateProcessLogical_Main.ejs +2 -2
- package/src/emit/shared/templates/ProcessLogical_HdrSqs.ejs +1 -1
- package/src/generate.js +26 -5
- package/src/output/mergeHooks.js +13 -13
- package/src/output/validateArtifacts.js +10 -1
- package/test/publicApi.test.js +2 -2
- package/test/resourceArtifacts.test.js +8 -18
- package/docs/TriggeredCache Flow.drawio +0 -193
- package/docs/TriggeredCacheFlow.mmd +0 -47
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
<%_ flowTags.forEach(flowTag => { _%>
|
|
2
|
+
SubscriptionOut<%- flowTag.charAt(0).toUpperCase() + flowTag.slice(1) %>To<%- queueName %>:
|
|
3
|
+
Type: AWS::SNS::Subscription
|
|
4
|
+
Properties:
|
|
5
|
+
TopicArn: !Ref Out<%- flowTag.charAt(0).toUpperCase() + flowTag.slice(1) %>
|
|
6
|
+
Endpoint: 'arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs'
|
|
7
|
+
Protocol: 'sqs'
|
|
8
|
+
<%_ }) _%>
|
|
9
|
+
##===== [Queue]
|
|
10
|
+
<%- queueName %>HdrSqs:
|
|
11
|
+
Type: 'AWS::SQS::Queue'
|
|
12
|
+
Properties:
|
|
13
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs
|
|
14
|
+
RedrivePolicy:
|
|
15
|
+
deadLetterTargetArn:
|
|
16
|
+
Fn::GetAtt:
|
|
17
|
+
- <%- queueName %>HdrSqsDLQ
|
|
18
|
+
- Arn
|
|
19
|
+
maxReceiveCount: 3
|
|
20
|
+
VisibilityTimeout: 120
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
##===== [Queue DLQ]
|
|
23
|
+
<%- queueName %>HdrSqsDLQ:
|
|
24
|
+
Type: AWS::SQS::Queue
|
|
25
|
+
Properties:
|
|
26
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqsDLQ
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
##===== [Queue Policy]
|
|
29
|
+
<%- queueName %>HdrSqsPolicy:
|
|
30
|
+
Type: AWS::SQS::QueuePolicy
|
|
31
|
+
Properties:
|
|
32
|
+
PolicyDocument:
|
|
33
|
+
Version: '2012-10-17'
|
|
34
|
+
Statement:
|
|
35
|
+
- Sid: 'allow-sns-messages'
|
|
36
|
+
Effect: Allow
|
|
37
|
+
Principal: '*'
|
|
38
|
+
Resource:
|
|
39
|
+
Fn::GetAtt:
|
|
40
|
+
- <%- queueName %>HdrSqs
|
|
41
|
+
- Arn
|
|
42
|
+
Action: 'SQS:SendMessage'
|
|
43
|
+
Queues:
|
|
44
|
+
- Ref: <%- queueName %>HdrSqs
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
#<#<%- queueName %>QueueSetting#>
|
|
47
|
+
#<#/<%- queueName %>QueueSetting#>
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
##===== [Queue]
|
|
2
|
+
<%- resourceQueueName || queueName %>:
|
|
3
|
+
Type: 'AWS::SQS::Queue'
|
|
4
|
+
Properties:
|
|
5
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>
|
|
6
|
+
RedrivePolicy:
|
|
7
|
+
deadLetterTargetArn:
|
|
8
|
+
Fn::GetAtt:
|
|
9
|
+
- <%- resourceQueueName || queueName %>DLQ
|
|
10
|
+
- Arn
|
|
11
|
+
maxReceiveCount: 3
|
|
12
|
+
VisibilityTimeout: 120
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
##===== [Queue DLQ]
|
|
15
|
+
<%- resourceQueueName || queueName %>DLQ:
|
|
16
|
+
Type: AWS::SQS::Queue
|
|
17
|
+
Properties:
|
|
18
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>DLQ
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
##===== [Queue Policy]
|
|
21
|
+
<%- resourceQueueName || queueName %>Policy:
|
|
22
|
+
Type: AWS::SQS::QueuePolicy
|
|
23
|
+
Properties:
|
|
24
|
+
PolicyDocument:
|
|
25
|
+
Version: '2012-10-17'
|
|
26
|
+
Statement:
|
|
27
|
+
- Sid: 'allow-sns-messages'
|
|
28
|
+
Effect: Allow
|
|
29
|
+
Principal: '*'
|
|
30
|
+
Resource:
|
|
31
|
+
Fn::GetAtt:
|
|
32
|
+
- <%- resourceQueueName || queueName %>
|
|
33
|
+
- Arn
|
|
34
|
+
Action: 'SQS:SendMessage'
|
|
35
|
+
Queues:
|
|
36
|
+
- Ref: <%- resourceQueueName || queueName %>
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
#<#<%- queueName %>QueueSetting#>
|
|
39
|
+
#<#/<%- queueName %>QueueSetting#>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
##===== [Create topic in]
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
In<%- queueName %>:
|
|
3
|
+
Type: AWS::SNS::Topic
|
|
4
|
+
Properties:
|
|
5
|
+
DisplayName: 'SNS Message in'
|
|
6
|
+
TopicName: ${self:custom.iz_serviceTag}_${self:custom.iz_stage}_<%- queueName %>_In
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
##===== [SNS Subscription - Topic In]
|
|
9
|
+
SubscriptionIn<%- queueName %>:
|
|
10
|
+
Type: AWS::SNS::Subscription
|
|
11
|
+
Properties:
|
|
12
|
+
TopicArn: !Ref In<%- queueName %>
|
|
13
|
+
Endpoint: 'arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs'
|
|
14
|
+
Protocol: 'sqs'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
##===== [Queue]
|
|
17
|
+
<%- queueName %>HdrSqs:
|
|
18
|
+
Type: 'AWS::SQS::Queue'
|
|
19
|
+
Properties:
|
|
20
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs
|
|
21
|
+
RedrivePolicy:
|
|
22
|
+
deadLetterTargetArn:
|
|
23
|
+
Fn::GetAtt:
|
|
24
|
+
- <%- queueName %>HdrSqsDLQ
|
|
25
|
+
- Arn
|
|
26
|
+
maxReceiveCount: 3
|
|
27
|
+
VisibilityTimeout: 120
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
##===== [Queue DLQ]
|
|
30
|
+
<%- queueName %>HdrSqsDLQ:
|
|
31
|
+
Type: AWS::SQS::Queue
|
|
32
|
+
Properties:
|
|
33
|
+
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqsDLQ
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
##===== [Queue Policy]
|
|
36
|
+
<%- queueName %>HdrSqsPolicy:
|
|
37
|
+
Type: AWS::SQS::QueuePolicy
|
|
38
|
+
Properties:
|
|
39
|
+
PolicyDocument:
|
|
40
|
+
Version: '2012-10-17'
|
|
41
|
+
Statement:
|
|
42
|
+
- Sid: 'allow-sns-messages'
|
|
43
|
+
Effect: Allow
|
|
44
|
+
Principal: '*'
|
|
45
|
+
Resource:
|
|
46
|
+
Fn::GetAtt:
|
|
47
|
+
- <%- queueName %>HdrSqs
|
|
48
|
+
- Arn
|
|
49
|
+
Action: 'SQS:SendMessage'
|
|
50
|
+
Queues:
|
|
51
|
+
- Ref: <%- queueName %>HdrSqs
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
#<#<%- queueName %>QueueSetting#>
|
|
54
|
+
#<#/<%- queueName %>QueueSetting#>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
##===== SNS Subscription
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<%- subscriptionName %>:
|
|
3
|
+
Type: AWS::SNS::Subscription
|
|
4
|
+
Properties:
|
|
5
|
+
TopicArn: !Ref <%- topicName %>
|
|
6
|
+
Endpoint: 'arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- queueName %>'
|
|
7
|
+
Protocol: 'sqs'
|
|
@@ -5,11 +5,11 @@ Resources:
|
|
|
5
5
|
Properties:
|
|
6
6
|
RoleName: ${self:custom.iz_resourcePrefix}<%- roleName %>
|
|
7
7
|
AssumeRolePolicyDocument:
|
|
8
|
-
Version:
|
|
8
|
+
Version: '2012-10-17'
|
|
9
9
|
Statement:
|
|
10
10
|
- Effect: Allow
|
|
11
11
|
Principal:
|
|
12
|
-
Service:
|
|
12
|
+
Service: 'lambda.amazonaws.com'
|
|
13
13
|
Action: sts:AssumeRole
|
|
14
14
|
#<#<%- roleName %>AssumeRoleStatementHookCode#>
|
|
15
15
|
#<#/<%- roleName %>AssumeRoleStatementHookCode#>
|
|
@@ -20,7 +20,7 @@ Resources:
|
|
|
20
20
|
Policies:
|
|
21
21
|
- PolicyName: ${self:custom.iz_resourcePrefix}<%- roleName.replace(/role$/i, '') %>Policy
|
|
22
22
|
PolicyDocument:
|
|
23
|
-
Version:
|
|
23
|
+
Version: '2012-10-17'
|
|
24
24
|
Statement:
|
|
25
25
|
<% statements.forEach((stmt) => { -%>
|
|
26
26
|
- Effect: Allow
|
|
@@ -30,7 +30,7 @@ Resources:
|
|
|
30
30
|
<% }) -%>
|
|
31
31
|
Resource:
|
|
32
32
|
<% stmt.resource.forEach((r) => { -%>
|
|
33
|
-
-
|
|
33
|
+
- '<%- r %>'
|
|
34
34
|
<% }) -%>
|
|
35
35
|
<% }) -%>
|
|
36
36
|
#<#<%- roleName %>StatementHookCode#>
|
|
@@ -1,219 +1,219 @@
|
|
|
1
1
|
Resources:
|
|
2
2
|
WebSocketTaskTable:
|
|
3
|
-
Type:
|
|
3
|
+
Type: 'AWS::DynamoDB::Table'
|
|
4
4
|
Properties:
|
|
5
5
|
TableName: ${self:custom.iz_resourcePrefix}WebSocketTask
|
|
6
6
|
BillingMode: PAY_PER_REQUEST
|
|
7
7
|
AttributeDefinitions:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
- AttributeName: taskKey
|
|
9
|
+
AttributeType: S
|
|
10
|
+
- AttributeName: connectionId
|
|
11
|
+
AttributeType: S
|
|
12
12
|
KeySchema:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
- AttributeName: taskKey
|
|
14
|
+
KeyType: HASH
|
|
15
|
+
- AttributeName: connectionId
|
|
16
|
+
KeyType: RANGE
|
|
17
17
|
TimeToLiveSpecification:
|
|
18
18
|
AttributeName: expirationTime
|
|
19
19
|
Enabled: true
|
|
20
20
|
|
|
21
21
|
UserUploadRecordsTable:
|
|
22
|
-
Type:
|
|
22
|
+
Type: 'AWS::DynamoDB::Table'
|
|
23
23
|
Properties:
|
|
24
24
|
TableName: ${self:custom.iz_resourcePrefix}UserUploadRecords
|
|
25
25
|
BillingMode: PAY_PER_REQUEST
|
|
26
26
|
AttributeDefinitions:
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
- AttributeName: connectionId
|
|
28
|
+
AttributeType: S
|
|
29
29
|
KeySchema:
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
- AttributeName: connectionId
|
|
31
|
+
KeyType: HASH
|
|
32
32
|
TimeToLiveSpecification:
|
|
33
33
|
AttributeName: expirationTime
|
|
34
34
|
Enabled: true
|
|
35
35
|
|
|
36
36
|
RegisterRecordsTable:
|
|
37
|
-
Type:
|
|
37
|
+
Type: 'AWS::DynamoDB::Table'
|
|
38
38
|
Properties:
|
|
39
39
|
TableName: ${self:custom.iz_resourcePrefix}RegisterRecords
|
|
40
40
|
BillingMode: PAY_PER_REQUEST
|
|
41
41
|
AttributeDefinitions:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
- AttributeName: identifiersTask
|
|
43
|
+
AttributeType: S
|
|
44
|
+
- AttributeName: connectionId
|
|
45
|
+
AttributeType: S
|
|
46
46
|
KeySchema:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
- AttributeName: identifiersTask
|
|
48
|
+
KeyType: HASH
|
|
49
|
+
- AttributeName: connectionId
|
|
50
|
+
KeyType: RANGE
|
|
51
51
|
|
|
52
52
|
AwaitingMultipleStepsTable:
|
|
53
|
-
Type:
|
|
53
|
+
Type: 'AWS::DynamoDB::Table'
|
|
54
54
|
Properties:
|
|
55
55
|
TableName: ${self:custom.iz_resourcePrefix}AwaitingMultipleSteps
|
|
56
56
|
BillingMode: PAY_PER_REQUEST
|
|
57
57
|
AttributeDefinitions:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
- AttributeName: awaitingStepId
|
|
59
|
+
AttributeType: S
|
|
60
|
+
- AttributeName: pendingStepId
|
|
61
|
+
AttributeType: S
|
|
62
62
|
KeySchema:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
- AttributeName: awaitingStepId
|
|
64
|
+
KeyType: HASH
|
|
65
|
+
- AttributeName: pendingStepId
|
|
66
|
+
KeyType: RANGE
|
|
67
67
|
|
|
68
68
|
AwaitingMultipleStepByPendingTable:
|
|
69
|
-
Type:
|
|
69
|
+
Type: 'AWS::DynamoDB::Table'
|
|
70
70
|
Properties:
|
|
71
71
|
TableName: ${self:custom.iz_resourcePrefix}AwaitingMultipleStepByPending
|
|
72
72
|
BillingMode: PAY_PER_REQUEST
|
|
73
73
|
AttributeDefinitions:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
- AttributeName: pendingStepId
|
|
75
|
+
AttributeType: S
|
|
76
|
+
- AttributeName: awaitingStepId
|
|
77
|
+
AttributeType: S
|
|
78
78
|
KeySchema:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
- AttributeName: pendingStepId
|
|
80
|
+
KeyType: HASH
|
|
81
|
+
- AttributeName: awaitingStepId
|
|
82
|
+
KeyType: RANGE
|
|
83
83
|
|
|
84
84
|
FindDataMainTable:
|
|
85
|
-
Type:
|
|
85
|
+
Type: 'AWS::DynamoDB::Table'
|
|
86
86
|
Properties:
|
|
87
87
|
TableName: ${self:custom.iz_resourcePrefix}FindDataMain
|
|
88
88
|
BillingMode: PAY_PER_REQUEST
|
|
89
89
|
AttributeDefinitions:
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
- AttributeName: findDataId
|
|
91
|
+
AttributeType: S
|
|
92
92
|
KeySchema:
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
- AttributeName: findDataId
|
|
94
|
+
KeyType: HASH
|
|
95
95
|
|
|
96
96
|
LogicalResultsMainTable:
|
|
97
|
-
Type:
|
|
97
|
+
Type: 'AWS::DynamoDB::Table'
|
|
98
98
|
Properties:
|
|
99
99
|
TableName: ${self:custom.iz_resourcePrefix}LogicalResultsMain
|
|
100
100
|
BillingMode: PAY_PER_REQUEST
|
|
101
101
|
AttributeDefinitions:
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
- AttributeName: logicalResultId
|
|
103
|
+
AttributeType: S
|
|
104
104
|
KeySchema:
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
- AttributeName: logicalResultId
|
|
106
|
+
KeyType: HASH
|
|
107
107
|
|
|
108
108
|
LogicalResultsDataTable:
|
|
109
|
-
Type:
|
|
109
|
+
Type: 'AWS::DynamoDB::Table'
|
|
110
110
|
Properties:
|
|
111
111
|
TableName: ${self:custom.iz_resourcePrefix}LogicalResultsData
|
|
112
112
|
BillingMode: PAY_PER_REQUEST
|
|
113
113
|
AttributeDefinitions:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
- AttributeName: logicalResultId
|
|
115
|
+
AttributeType: S
|
|
116
|
+
- AttributeName: identifiersId
|
|
117
|
+
AttributeType: S
|
|
118
118
|
KeySchema:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
- AttributeName: logicalResultId
|
|
120
|
+
KeyType: HASH
|
|
121
|
+
- AttributeName: identifiersId
|
|
122
|
+
KeyType: RANGE
|
|
123
123
|
|
|
124
124
|
AwaitingStepTable:
|
|
125
|
-
Type:
|
|
125
|
+
Type: 'AWS::DynamoDB::Table'
|
|
126
126
|
Properties:
|
|
127
127
|
TableName: ${self:custom.iz_resourcePrefix}AwaitingStep
|
|
128
128
|
BillingMode: PAY_PER_REQUEST
|
|
129
129
|
AttributeDefinitions:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
- AttributeName: awaitingStepId
|
|
131
|
+
AttributeType: S
|
|
132
|
+
- AttributeName: pendingStepId
|
|
133
|
+
AttributeType: S
|
|
134
134
|
KeySchema:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
- AttributeName: awaitingStepId
|
|
136
|
+
KeyType: HASH
|
|
137
|
+
- AttributeName: pendingStepId
|
|
138
|
+
KeyType: RANGE
|
|
139
139
|
|
|
140
140
|
TargetRolesTable:
|
|
141
|
-
Type:
|
|
141
|
+
Type: 'AWS::DynamoDB::Table'
|
|
142
142
|
Properties:
|
|
143
143
|
TableName: ${self:custom.iz_resourcePrefix}TargetRoles
|
|
144
144
|
BillingMode: PAY_PER_REQUEST
|
|
145
145
|
AttributeDefinitions:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
- AttributeName: targetId
|
|
147
|
+
AttributeType: S
|
|
148
|
+
- AttributeName: roleIdKey
|
|
149
|
+
AttributeType: S
|
|
150
150
|
KeySchema:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
- AttributeName: targetId
|
|
152
|
+
KeyType: HASH
|
|
153
|
+
- AttributeName: roleIdKey
|
|
154
|
+
KeyType: RANGE
|
|
155
155
|
|
|
156
156
|
RolePermissionsTable:
|
|
157
|
-
Type:
|
|
157
|
+
Type: 'AWS::DynamoDB::Table'
|
|
158
158
|
Properties:
|
|
159
159
|
TableName: ${self:custom.iz_resourcePrefix}RolePermissions
|
|
160
160
|
BillingMode: PAY_PER_REQUEST
|
|
161
161
|
AttributeDefinitions:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
- AttributeName: roleIdKey
|
|
163
|
+
AttributeType: S
|
|
164
|
+
- AttributeName: flowTypeConcat
|
|
165
|
+
AttributeType: S
|
|
166
166
|
KeySchema:
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
- AttributeName: roleIdKey
|
|
168
|
+
KeyType: HASH
|
|
169
|
+
- AttributeName: flowTypeConcat
|
|
170
|
+
KeyType: RANGE
|
|
171
171
|
|
|
172
172
|
RoleUsersTable:
|
|
173
|
-
Type:
|
|
173
|
+
Type: 'AWS::DynamoDB::Table'
|
|
174
174
|
Properties:
|
|
175
175
|
TableName: ${self:custom.iz_resourcePrefix}RoleUsers
|
|
176
176
|
BillingMode: PAY_PER_REQUEST
|
|
177
177
|
AttributeDefinitions:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
- AttributeName: roleIdKey
|
|
179
|
+
AttributeType: S
|
|
180
|
+
- AttributeName: userId
|
|
181
|
+
AttributeType: S
|
|
182
182
|
KeySchema:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
- AttributeName: roleIdKey
|
|
184
|
+
KeyType: HASH
|
|
185
|
+
- AttributeName: userId
|
|
186
|
+
KeyType: RANGE
|
|
187
187
|
|
|
188
188
|
UserRolesTable:
|
|
189
|
-
Type:
|
|
189
|
+
Type: 'AWS::DynamoDB::Table'
|
|
190
190
|
Properties:
|
|
191
191
|
TableName: ${self:custom.iz_resourcePrefix}UserRoles
|
|
192
192
|
BillingMode: PAY_PER_REQUEST
|
|
193
193
|
AttributeDefinitions:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
- AttributeName: userId
|
|
195
|
+
AttributeType: S
|
|
196
|
+
- AttributeName: roleIdKey
|
|
197
|
+
AttributeType: S
|
|
198
198
|
KeySchema:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
<% if (hasS3) { %>
|
|
199
|
+
- AttributeName: userId
|
|
200
|
+
KeyType: HASH
|
|
201
|
+
- AttributeName: roleIdKey
|
|
202
|
+
KeyType: RANGE
|
|
203
|
+
<% if (hasS3) { %>
|
|
204
204
|
ReservedDataMainTable:
|
|
205
|
-
Type:
|
|
205
|
+
Type: 'AWS::DynamoDB::Table'
|
|
206
206
|
Properties:
|
|
207
207
|
TableName: ${self:custom.iz_resourcePrefix}ReservedDataMain
|
|
208
208
|
BillingMode: PAY_PER_REQUEST
|
|
209
209
|
AttributeDefinitions:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
- AttributeName: servicePendingId
|
|
211
|
+
AttributeType: S
|
|
212
|
+
- AttributeName: reservedDataId
|
|
213
|
+
AttributeType: S
|
|
214
214
|
KeySchema:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
- AttributeName: servicePendingId
|
|
216
|
+
KeyType: HASH
|
|
217
|
+
- AttributeName: reservedDataId
|
|
218
|
+
KeyType: RANGE
|
|
219
219
|
<% } %>
|