@startuml
' The ```plantuml tag is needed for the GitLab PlantUML plugin to work!!
```plantuml this is for tecnalia plantuml plugin

title Initiate Deployment

participant "Runtime Controller (PRC)" as RTPRC

box "IaC Execution Manager" #LightBlue
participant "Rest API" as RTIEM_api #99FF99
participant Core as RTIEM_core #99FF99
participant Persistence as RTIEM_db #99FF99
participant "Executor" as executor #99FF99

end box

collections "Resource Provider" as infraresource

RTPRC -> RTIEM_api: Deployment Request
RTPRC <-- RTIEM_api: Deployment Response

RTIEM_api -> RTIEM_core: Deployment Request

RTIEM_core -> RTIEM_db: Save Deployment Started

RTIEM_core -> executor: Deployment Request

executor -> infraresource: Deploy Commands
executor -> infraresource: ...
executor -> infraresource: Deploy Commands

executor -> RTIEM_core: Deployment Response

RTIEM_core -> RTIEM_db: Save Deployment Status
'```
@enduml