forked from rogeruiz/scuttle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-example.dsl
61 lines (47 loc) · 1.88 KB
/
aws-example.dsl
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
workspace {
model {
u = person "User"
s = softwareSystem "Software System" {
webapp = container "Web Application" "" "Spring Boot"
database = container "Database" "" "Relational database schema"
}
u -> webapp "Uses"
webapp -> database "Reads from and writes to"
live = deploymentEnvironment "Live" {
deploymentNode "Amazon Web Services" {
tags "Amazon Web Services - Cloud"
deploymentNode "US-East-1" {
tags "Amazon Web Services - Region"
route53 = infrastructureNode "Route 53" {
tags "Amazon Web Services - Route 53"
}
elb = infrastructureNode "Elastic Load Balancer" {
tags "Amazon Web Services - Elastic Load Balancing"
}
deploymentNode "Amazon EC2" {
tags "Amazon Web Services - EC2"
deploymentNode "Ubuntu Server" {
webApplicationInstance = containerInstance webapp
}
}
deploymentNode "Amazon RDS" {
tags "Amazon Web Services - RDS"
deploymentNode "PostgreSQL" {
tags "Amazon Web Services - RDS PostgreSQL instance"
containerInstance database
}
}
}
}
route53 -> elb "Forwards requests to" "HTTPS"
elb -> webApplicationInstance "Forwards requests to" "HTTPS"
}
}
views {
deployment s live {
include *
autoLayout lr
}
theme https://static.structurizr.com/themes/amazon-web-services-2020.04.30/theme.json
}
}