Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
graza-io opened this issue Apr 23, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@graza-io
Copy link
Contributor

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]
}
@graza-io graza-io added the bug Something isn't working label Apr 23, 2024
Copy link

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 github-actions bot added the stale label Jun 23, 2024
@graza-io graza-io removed the stale label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant