Dagweave catalog

Download an object from S3

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

Download an object from an Amazon S3 bucket to a local path 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-download/1.0.2/template.yaml

Or with the Argo CLI:

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

Facts

Category
Object storage
Tags
aws-cli object-storage
Entrypoint
download
Template SHA-256
f30ea4f97b605a71f1dcc6cd9d915fed30f0cdc8bbf1bbbb1296e894aef1f050
Source
s3-download 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 Source S3 bucket name (no s3:// prefix).
Example my-data-bucket
none
dest-path required Local path to write the downloaded object to. none
key required Object key to download from the bucket.
Example reports/2026/summary.csv
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
region AWS region of the bucket. us-east-1

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: s3-download
  labels:
    dagweave.io/catalog-item: s3-download
  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: download
  templates:
    - name: download
      inputs:
        parameters:
          # Source S3 bucket name (no s3:// prefix).
          - name: bucket
          # Object key to download from the bucket.
          - name: key
          # Local path to write the downloaded object to.
          - name: dest-path
          # 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/key containing shell metacharacters is safe; each $VAR is
        # referenced double-quoted.
        args:
          - |
            set -eu
            aws s3 cp "s3://${S3_BUCKET}/${S3_KEY}" "${DEST_PATH}"
        env:
          - name: S3_BUCKET
            value: "{{inputs.parameters.bucket}}"
          - name: S3_KEY
            value: "{{inputs.parameters.key}}"
          - name: DEST_PATH
            value: "{{inputs.parameters.dest-path}}"
          - 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 cp` out of a bucket was round-tripped against MinIO on both digests.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/s3-download/1.0.2/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/s3-download/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-download \
  -p bucket=my-data-bucket \
  -p dest-path=... \
  -p key=reports/2026/summary.csv

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: s3-download-
spec:
  workflowTemplateRef:
    name: s3-download
  arguments:
    parameters:
      - name: bucket
        value: "my-data-bucket"
      - name: dest-path
        value: "..."
      - name: key
        value: "reports/2026/summary.csv"

As a step of a larger workflow

steps:
  - - name: s3-download
      templateRef:
        name: s3-download
        template: download