SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Parameter reference function #7

Closed t-ikeda-sti closed 1 year ago

t-ikeda-sti commented 1 year ago

User Story

Developers want to use artifact and resource parameters for defining artifacts and resources that depend on them. For example, they want to store container images by obtaining the credentials of the container repository.

Acceptance Criteria

For example, as refers to the name of asp when defined as follows. asp is created and modified before as.

kind: resource
name: asp
provider: azure-app-service-plan
parameters:
  name: sample-asp
  resource_group_name: sample-rg
  location: "Japan East"

---

kind: resource
name: as
provider: azure-app-service
parameters:
  name: sample-as
  resource_group_name: sample-rg
  location: "Japan East"
  app_service_plan_id: ${ resource.asp.name } # read resource parameters
t-ikeda-sti commented 1 year ago

Implemented.