Skip to content

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

Closed
@luisffc

Description

  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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions