-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reading mermaid uml from external file
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from multicloud_diagrams import MultiCloudDiagrams | ||
from samples.samples.aws_service_end_2_end import prepare_end2end | ||
|
||
|
||
def main(): | ||
mcd = MultiCloudDiagrams() | ||
|
||
prefix = 'prod' | ||
prev_file = f'../output/output.{prefix}.end2end.drawio' | ||
result_file = f'../output/output.{prefix}_uml.end2end.drawio' | ||
|
||
mcd.read_coords_from_file(prev_file) | ||
prepare_end2end(mcd) | ||
|
||
mcd.read_uml_from_file('uml.mermaid') | ||
|
||
mcd.export_to_file(result_file) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
sequenceDiagram | ||
actor Donald | ||
participant S3Bucket | ||
participant LambdaFunction1 | ||
participant LambdaFunction2 | ||
participant SNS | ||
participant SQS | ||
participant Storage | ||
|
||
Donald->>S3Bucket: Put new file into S3 bucket | ||
S3Bucket->>LambdaFunction1: LifeConfig Rule invokes lambda function | ||
LambdaFunction1->>SNS: Send Event to SNS that file processing is finished | ||
SNS->>SQS: Fanout Event to SQS | ||
SQS->>LambdaFunction2: poll message from SQS and invoke consumer lambda function | ||
LambdaFunction2->>Storage: Update DynamoDB Table. Save image status. |