Upload Files to AWS S3

The AWS S3 integration provides an immutable datastore option in case you want to export files outside of the K8s cluster.

You can read the helper section to learn more about the available AWS S3 helpers.

The most common helper would be the vendor.s3.put helper that uploads a file using the provided credentials.

Use Specific Auth Credentials

vendor.s3.put(
  env.S3_BUCKET,
  tarFile,
  env.AWS_REGION,
  env.AWS_ACCESS_KEY_ID,
  env.AWS_SECRET_ACCESS_KEY
);

Read more about the required AWS credentials here.

Shared Auth

In cases, when shared authentication is used (e.g. IRSA, kube2iam), S3 helper will use the default authentication and not require specific AWS Auth credentials.

vendor.s3.put(
  env.S3_BUCKET,
  tarFile,
  env.AWS_REGION
);

Read more about IRSA in this article.