Upload a file to S3
Upload a local file or artifact to 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-upload/1.0.2/template.yaml
Or with the Argo CLI:
argo template create -n argo https://catalog.dagweave.com/api/v1/items/s3-upload/1.0.2/template.yaml
Facts
- Category
- Object storage
- Tags
- aws-cli object-storage
- Entrypoint
upload- Template SHA-256
904173145266cffc4174134030287809dddf8892999816c993ac36981f417326- Source
- s3-upload 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.
| Repository | Tag | Digest |
|---|---|---|
amazon/aws-cli | 2.39.3 | sha256:d557b3524475d70dd3104cf44d96568ee3188897b73a6ece2b37aa50e1af362f |
Parameters
| Name | Description | Default |
|---|---|---|
bucket required |
Target S3 bucket name (no s3:// prefix). Example my-data-bucket |
none |
key required |
Destination object key within the bucket. Example reports/2026/summary.csv |
none |
source-path required |
Local path of the file to upload. | 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
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: s3-upload
labels:
dagweave.io/catalog-item: s3-upload
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: upload
templates:
- name: upload
inputs:
parameters:
# Target S3 bucket name (no s3:// prefix).
- name: bucket
# Destination object key within the bucket.
- name: key
# Local path of the file to upload (an artifact staged by a prior step).
- name: source-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 "${SOURCE_PATH}" "s3://${S3_BUCKET}/${S3_KEY}"
env:
- name: S3_BUCKET
value: "{{inputs.parameters.bucket}}"
- name: S3_KEY
value: "{{inputs.parameters.key}}"
- name: SOURCE_PATH
value: "{{inputs.parameters.source-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.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` into a bucket was round-tripped against MinIO on both digests.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/s3-upload/1.0.2/template.yamlargo template create -n argo https://catalog.dagweave.com/api/v1/items/s3-upload/1.0.2/template.yaml -
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
-
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-upload \
-p bucket=my-data-bucket \
-p key=reports/2026/summary.csv \
-p source-path=...
Workflow that references it
A Workflow with the required parameters filled from the examples.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: s3-upload-
spec:
workflowTemplateRef:
name: s3-upload
arguments:
parameters:
- name: bucket
value: "my-data-bucket"
- name: key
value: "reports/2026/summary.csv"
- name: source-path
value: "..."
As a step of a larger workflow
steps:
- - name: s3-upload
templateRef:
name: s3-upload
template: upload