-
Notifications
You must be signed in to change notification settings - Fork 1
/
externals.c4
139 lines (113 loc) · 2.28 KB
/
externals.c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
model {
amazon = externalSystem 'Amazon' {
description: 'Cloud and managed services provider'
rds = container 'RDS' {
description: 'Relational Database Service'
pg = component 'PostgreSQL' {
#db
tblUsers = table 'Users Table' {
#deprecated
description: '
Table with registered users.
Contains references to Identity provider.
[deprecated, moving to Aurora]
'
}
}
}
sqs = container {
title: 'SQS'
description: 'Simple Queue Service'
queue queue1 'Raw Data' {
description: 'Queue with raw data'
}
queue queue2 'Enriched Data' {
description: '
Filtered and preprocessed data
Ready for further processing
'
}
}
lambdas = container {
title: 'Lambdas'
description: 'Serverless compute'
fn_enrich = lambda 'Enrichment' {
description: '
Enriches raw data
by adding additional information
'
}
fn_enrich -> queue1 "reads raw data"
fn_enrich -> queue2 "writes enriched data"
}
}
}
views {
view amazon of amazon {
title "Amazon"
include
*,
cloud,
cloud.* -> amazon.*,
style * {
color secondary
}
style amazon, cloud {
color muted
}
style amazon.* {
color green
}
}
view amazon_sqs of sqs {
title 'Amazon: SQS'
include
*,
amazon,
cloud,
cloud.next.* -> sqs.*
style * {
color secondary
}
style amazon, cloud {
color muted
}
style sqs, sqs.* {
color green
}
}
view amazon_lambdas of lambdas {
title 'Amazon: Lambdas'
include
*,
amazon,
amazon.sqs,
-> amazon.sqs.*
style * {
color secondary
}
style amazon {
color muted
}
style lambdas, lambdas.* {
color green
}
}
view amazon_rds of amazon.rds {
title 'Amazon: RDS'
include
*,
cloud,
cloud.* -> amazon.rds.pg.*,
cloud.* -> amazon.rds.aurora.*,
style * {
color muted
}
style cloud.* {
color secondary
}
style amazon.rds.* {
color green
}
}
}