← IaC Academy

Files and artifacts · 17 / 23

Compose and encode a native model

Use a schema-discovered virtual model and let xmlencode handle serialization.

YOUR TASK

Make this happen

3 steps
  1. Set the document identity to com.academy.note.

  2. Keep source(xmlencode(integration_document.note)) as the team description.

  3. Inspect the model fields and check the composed value.

Read the starter files

main.cococo

integration_document "note" {
  integrationId = "com.academy.wrong"
  version = "1.0.0"
  sdkVersion = "2.0"
}

team "fulfillment" {
  name = "Fulfillment"
  description = source(xmlencode(integration_document.note))
}