kestra-io / terraform-provider-kestra

https://kestra.io/docs/terraform/
Apache License 2.0
11 stars 10 forks source link

Currently doc shows an example not working with keep_original_source = true #80

Closed aballiet closed 1 year ago

aballiet commented 1 year ago

Expected Behavior

We expect the example displayed here to be working with keep_original_source = true

Actual Behaviour

Throws an error :

image

Due to missing definition of id and namespace in YAML

Steps To Reproduce

resource "kestra_flow" "example" {
  namespace = "io.kestra.mynamespace"
  keep_original_source = true
  flow_id   = "my-flow"
  content   = <<EOT
inputs:
  - name: my-value
    type: STRING

variables:
  first: "1"

tasks:
  - id: t2
    type: io.kestra.core.tasks.debugs.Echo
    format: first {{task.id}}
    level: TRACE

taskDefaults:
  - type: io.kestra.core.tasks.debugs.Echo
    values:
      format: third {{flow.id}}
EOT
}

Environment Information

Example flow

No response