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

The pipeline property args is not changeable in a loop #559

Closed
luisffc opened this issue Jan 9, 2024 · 0 comments · Fixed by #575
Closed

The pipeline property args is not changeable in a loop #559

luisffc opened this issue Jan 9, 2024 · 0 comments · Fixed by #575
Assignees
Labels
bug Something isn't working

Comments

@luisffc
Copy link
Contributor

luisffc commented Jan 9, 2024

  step "pipeline" "create_iam_role" {
    pipeline = aws.pipeline.create_iam_role
    args = {
      cred      = param.aws_cred
      role_name = "${param.role_name}"
      assume_role_policy_document = param.assume_role_policy_document
    }

    loop {
      until = loop.index < param.amount
      args = {
        cred      = param.aws_cred
        role_name = "${param.role_name}-${loop.index}"
        assume_role_policy_document = param.assume_role_policy_document
      }
    }
  }

Returns

Error: Failed to decode mod:
Unsupported argument: An argument named "args" is not expected here.
(/Users/luis/steampipe/pipeling-scale-testing/scripts/aws/create_iam_roles.fp:59,7-11)

https://turbothq.slack.com/archives/C0595BVHS83/p1704752123881589

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
2 participants