Created: 2024-06-08 | Updated: 2024-09-21
App Runner
New (v0.3.45)
Table of contents
Node Type: app_runner
Rendering:
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
apprunner_service_arn = 'arn:aws:app_runner:us-west-1:123456789012:service/app_runner/123'
appruner_service_name = 'App Runner'
metadata = {
"serviceName": "app_runner",
'Cpu': '2',
'Memory': '1024',
'Protocol': 'TCP | HTTP',
'Path': '/root/domain',
'Interval': 123,
'Timeout': 123,
'HealthyThreshold': 123,
'UnhealthyThreshold': 123,
'Type': 'BRANCH',
'Runtime': 'PYTHON_3 | NODEJS_18',
'BuildCommand': 'poetry install'
}
mcd.add_vertex(node_id=apprunner_service_arn, node_name=appruner_service_name, node_type='app_runner', metadata=metadata)
drawio app_runner vertex:
<mxCell id="vertex:app_runner:arn:aws:app_runner:us-west-1:123456789012:service/app_runner/123" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=#F78E04;gradientDirection=north;fillColor=#D05C17;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.app_runner;"
attribute | value |
---|---|
align | left |
aspect | fixed |
dashed | 0 |
fillColor | #D05C17 |
fontColor | #232F3E |
fontSize | 12 |
fontStyle | 0 |
gradientColor | #F78E04 |
gradientDirection | north |
html | 1 |
outlineConnect | 0 |
resIcon | mxgraph.aws4.app_runner |
shape | mxgraph.aws4.resourceIcon |
sketch | 0 |
strokeColor | #ffffff |
verticalAlign | top |
verticalLabelPosition | bottom |
Vertex size:
attribute | value |
---|---|
width | 78 |
height | 78 |
Full XML dump:
<mxfile host="multicloud-diagrams" agent="PIP package multicloud-diagrams. Generate resources in draw.io compatible format for Cloud infrastructure. Copyrights @ Roman Tsypuk 2023. MIT license." type="MultiCloud">
<diagram id="diagram_1" name="AWS components">
<mxGraphModel dx="1015" dy="661" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="1">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="vertex:app_runner:arn:aws:app_runner:us-west-1:123456789012:service/app_runner/123" value="<b>Name</b>: App Runner<BR><b>ARN</b>: arn:aws:app_runner:us-west-1:123456789012:service/app_runner/123<BR>-----------<BR><b>serviceName</b>: app_runner<BR><b>Cpu</b>: 2<BR><b>Memory</b>: 1024<BR><b>Protocol</b>: TCP | HTTP<BR><b>Path</b>: /root/domain<BR><b>Interval</b>: 123<BR><b>Timeout</b>: 123<BR><b>HealthyThreshold</b>: 123<BR><b>UnhealthyThreshold</b>: 123<BR><b>Type</b>: BRANCH<BR><b>Runtime</b>: PYTHON_3 | NODEJS_18<BR><b>BuildCommand</b>: poetry install" style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=#F78E04;gradientDirection=north;fillColor=#D05C17;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.app_runner;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated app_runner.drawio
: