title: Pass array of files into the parameter of AWSCLI@1 task
body: <ul>
  <li>I'm using yaml pipelines</li>
  <li>I need to run aws cloudformation validate-template '--template-body &quot;file://xxx' command</li>
  <li>I don't know <strong>in advance</strong> the filenames to validate</li>
  <li>So I need to do some kind of 'dir /L' and pass the results into the task</li>
  <li>this is the task which I'm using</li>
  </ul>
  <pre><code>  - task: AWSCLI@1
      displayName: Validate Template
      inputs:
          awsCommand: cloudformation
          awsSubCommand: validate-template
          awsArguments: '--template-body &quot;file://$(Build.ArtifactStagingDirectory)/ec2.yml&quot;'
          awsCredentials: $(awsCredentials)
          failOnStandardError: true
          regionName: eu-west-1
  </code></pre>
  <p>This task validates only one file, how to do 'foreach' loop here?</p>