Skip to content

Commit

Permalink
fix(aws): switch VPC style to rectangle
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Jan 30, 2020
1 parent 12b0b0a commit f9578a8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion aws/aws-macros.puml
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@
!define s3_glacier(eId, eLabel) s3(eId, eLabel, Glacier)
!define s3_glacier(eId) s3_glacier(eId, S3 Glacier)

!define vpc(eId, eLabel) entity(card, eId, VirtualPrivateCloud, eLabel)
!define vpc(eId, eLabel) entity(rectangle, eId, VirtualPrivateCloud, eLabel)
!define vpc(eId) vpc(eId, VPC)
2 changes: 1 addition & 1 deletion aws/aws-styles.puml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ skinparam file<<ElasticContainer>> {
BorderColor AWS_COLOR
StereotypeFontColor AWS_COLOR
}
skinparam card<<VirtualPrivateCloud>> {
skinparam rectangle<<VirtualPrivateCloud>> {
BorderColor AWS_COLOR
StereotypeFontColor AWS_COLOR
BorderStyle dashed
Expand Down
34 changes: 18 additions & 16 deletions aws/example1.puml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@
'!include aws-constants.puml
'!include aws-styles.puml

external_system(extsys)
external_system(provider, External Provider)
sns(app_sns)
sqs(app_sqs)
msk(app_msk)
api_gateway(app_ag)
rds_mariadb(app_db)
rds_replica(app_db_rep)
elasticache_memcached(app_memcached)
eks(app_eks)
elb(app_elb)
ebs(app_ebs)
s3_glacier(app_s3)
elasticsearch(app_elasticsearch)

vpc(another_vpc, Another VPC)
vpc(my_vpc, My VPC){
external_system(extsys)
external_system(provider, External Provider)
sns(app_sns)
sqs(app_sqs)
msk(app_msk)
api_gateway(app_ag)
rds_mariadb(app_db)
rds_replica(app_db_rep)
elasticache_memcached(app_memcached)
eks(app_eks)
elb(app_elb)
ebs(app_ebs)
s3_glacier(app_s3)
elasticsearch(app_elasticsearch)
}
my_vpc -up-> another_vpc
extsys --> app_ag : fmt_tech(HTTPS)
extsys --> app_sqs : fmt_tech(HTTPS)
extsys <-- app_sns : fmt_tech(HTTPS/mails/...)
Expand All @@ -35,5 +38,4 @@ app_eks ..> app_ebs : fmt_label(manages)
app_eks -l-> provider : fmt_tech(HTTPS)
app_eks .> app_elb : manages
app_db_rep .> app_db : fmt_label(replicates)

@enduml

0 comments on commit f9578a8

Please sign in to comment.