Dagweave catalog

List objects under an S3 prefix

s3-listv1.0.2updated 2026-08-113 versions

List the objects under a prefix in an Amazon S3 bucket with the AWS CLI, using credentials read from a Kubernetes Secret.

Install v1.0.2

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/s3-list/1.0.2/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/s3-list/1.0.2/template.yaml

Facts

Category
Object storage
Tags
aws-cli object-storage
Entrypoint
list
Template SHA-256
241b18c708e7f0e1e58e168c47a336a4febc2693bb504bf7890a23713cd08459
Source
s3-list at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
amazon/aws-cli2.39.3sha256:d557b3524475d70dd3104cf44d96568ee3188897b73a6ece2b37aa50e1af362f

Parameters

NameDescriptionDefault
bucket required S3 bucket name to list (no s3:// prefix).
Example my-data-bucket
none
aws-access-key-id-key Key within the Secret that holds the AWS access key id. access-key-id
aws-secret-access-key-key Key within the Secret that holds the AWS secret access key. secret-access-key
aws-secret-name Name of the Kubernetes Secret in the run namespace holding the AWS credentials. aws-credentials
prefix Key prefix to list under. Empty lists the whole bucket.
Example reports/2026/
empty
region AWS region of the bucket. us-east-1

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: s3-list
  labels:
    dagweave.io/catalog-item: s3-list
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.2"
    dagweave.io/catalog-category: "Object storage"
spec:
  entrypoint: list
  templates:
    - name: list
      inputs:
        parameters:
          # S3 bucket name to list (no s3:// prefix).
          - name: bucket
          # Key prefix to list under. Empty lists the whole bucket.
          - name: prefix
            default: ""
          # AWS region of the bucket.
          - name: region
            default: us-east-1
          # Name of the Kubernetes Secret in the run namespace holding the AWS
          # credentials, plus the keys within it. Defaults let a user leave them
          # blank in the Inspector.
          - name: aws-secret-name
            default: aws-credentials
          - name: aws-access-key-id-key
            default: access-key-id
          - name: aws-secret-access-key-key
            default: secret-access-key
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # amazon/aws-cli:2.39.3
        image: amazon/aws-cli@sha256:d557b3524475d70dd3104cf44d96568ee3188897b73a6ece2b37aa50e1af362f
        command: [sh, -c]
        # Values are passed as env vars (below), never interpolated into the shell,
        # so a bucket/prefix containing shell metacharacters is safe; each $VAR is
        # referenced double-quoted.
        args:
          - |
            set -eu
            aws s3 ls "s3://${S3_BUCKET}/${S3_PREFIX}" --recursive
        env:
          - name: S3_BUCKET
            value: "{{inputs.parameters.bucket}}"
          - name: S3_PREFIX
            value: "{{inputs.parameters.prefix}}"
          - name: AWS_DEFAULT_REGION
            value: "{{inputs.parameters.region}}"
          - name: AWS_ACCESS_KEY_ID
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.aws-secret-name}}"
                key: "{{inputs.parameters.aws-access-key-id-key}}"
          - name: AWS_SECRET_ACCESS_KEY
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.aws-secret-name}}"
                key: "{{inputs.parameters.aws-secret-access-key-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.2 latest 2026-08-11

    Move amazon/aws-cli from 2.36.14 to 2.36.20. Clears all 8 fixable OS advisories and the image scans clean again. The six patch releases in between carry service model updates only, and `aws s3 ls --recursive` was round-tripped against MinIO on both digests.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/s3-list/1.0.2/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/s3-list/1.0.2/template.yaml

    version document, template.yaml

  2. 1.0.1 2026-08-02

    Move amazon/aws-cli from 2.17.19 to 2.36.14. Clears all 90 fixable CRITICAL/HIGH; the image now scans clean.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  3. 1.0.0 2026-07-16

    Initial release.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/s3-list \
  -p bucket=my-data-bucket

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: s3-list-
spec:
  workflowTemplateRef:
    name: s3-list
  arguments:
    parameters:
      - name: bucket
        value: "my-data-bucket"

As a step of a larger workflow

steps:
  - - name: s3-list
      templateRef:
        name: s3-list
        template: list