turbot / flowpipe

Flowpipe is a cloud scripting engine. Automation and workflow to connect your clouds to the people, systems and data that matters.
https://flowpipe.io
GNU Affero General Public License v3.0
353 stars 13 forks source link

Unable to decode mod when using non-fixed string as Pipeline index #834

Open graza-io opened 4 months ago

graza-io commented 4 months ago

Context

When attempting to utilise a variable in the Pipeline index string, as shown below:

step "pipeline" "pl_step" {
    pipeline = pipeline["pipeline_prefix_${var.some_variable}"]
}

I get an error:

Error: Internal Error: Failed to decode mod: Invalid index: The given key does not identify an element in this collection value.

I would expect this to be parsed rather than end in a decode failure.

Flowpipe Version

❯ flowpipe --version
Flowpipe v0.4.4

Additional Notes

Currently using a transform step to work around, which parses and runs successfully, example:

step "transform" "get_pipeline_id" {
  value = "pipeline_prefix_${var.some_variable}"
}

step "pipeline" "pl_step" {
    pipeline = pipeline[step.transform.get_pipeline_id.value]
}
github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.