From 12b0b0acd487c585a78b8e962e2efb7963f8dd0a Mon Sep 17 00:00:00 2001 From: tmorin Date: Tue, 28 Jan 2020 16:31:58 +0100 Subject: [PATCH] fix(aws): add Elasticsearch --- aws/aws-macros.puml | 4 ++++ aws/aws-styles.puml | 4 ++++ aws/example1.puml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/aws/aws-macros.puml b/aws/aws-macros.puml index c8c48ad7d6b..e38ec6244bc 100644 --- a/aws/aws-macros.puml +++ b/aws/aws-macros.puml @@ -29,6 +29,10 @@ !define rds_replica(eId, eLabel) rds(eId, eLabel, Replica) !define rds_replica(eId) rds_replica(eId, Database) +!define elasticsearch(eId, eLabel, eTech) entity(database, eId, Elasticsearch, eLabel, eTech) +!define elasticsearch(eId, eLabel) entity(database, eId, Elasticsearch, eLabel) +!define elasticsearch(eId) elasticsearch(eId, ElasticSearch) + !define elasticache(eId, eLabel, eTech) entity(database, eId, ElastiCache, eLabel, eTech) !define elasticache(eId, eLabel) entity(database, eId, ElastiCache, eLabel) !define elasticache(eId) elasticache(eId, Cache) diff --git a/aws/aws-styles.puml b/aws/aws-styles.puml index a769eb34c8f..2a9633264e9 100644 --- a/aws/aws-styles.puml +++ b/aws/aws-styles.puml @@ -67,5 +67,9 @@ skinparam card<> { StereotypeFontColor AWS_COLOR BorderStyle dashed } +skinparam database<> { + BorderColor AWS_COLOR + StereotypeFontColor AWS_COLOR +} skinparam defaultTextAlignment center \ No newline at end of file diff --git a/aws/example1.puml b/aws/example1.puml index c2631947f82..309dc88e04d 100644 --- a/aws/example1.puml +++ b/aws/example1.puml @@ -17,6 +17,7 @@ eks(app_eks) elb(app_elb) ebs(app_ebs) s3_glacier(app_s3) +elasticsearch(app_elasticsearch) extsys --> app_ag : fmt_tech(HTTPS) extsys --> app_sqs : fmt_tech(HTTPS) @@ -27,6 +28,7 @@ app_eks -u-> app_sns : fmt_tech(HTTPS) app_eks -u-> app_sqs : fmt_tech(HTTPS) app_eks -u-> app_msk : fmt_tech(TCP) app_eks --> app_memcached : fmt_tech(TCP) +app_eks --> app_elasticsearch : fmt_tech(HTTP) app_eks --> app_db : fmt_tech(TCP) app_eks --> app_db_rep : fmt_tech(TCP) app_eks ..> app_ebs : fmt_label(manages)