AWS (EKS)
Inputs and outputs on S3, from EKS. Pick one way for tif and tof to get credentials. Executors get none of them.
The examples assume release poiesis in namespace poiesis, so the TaskPod ServiceAccount is poiesis-taskpod. With taskpods.namespace set, use that namespace instead.
Workload identity (IRSA)
Create an IAM OIDC provider for the cluster:
basheksctl utils associate-iam-oidc-provider --cluster <cluster> --approveCreate a role with this trust policy (
<issuer>is the cluster's OIDC issuer withouthttps://):json{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam::<account>:oidc-provider/<issuer>" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "<issuer>:sub": "system:serviceaccount:poiesis:poiesis-taskpod", "<issuer>:aud": "sts.amazonaws.com" } } } ] }Allow the role
s3:GetObject,s3:PutObjectands3:ListBucketon the buckets tasks use.Install with:
yamls3: region: eu-central-1 roleArn: arn:aws:iam::<account>:role/poiesis-filer
Don't add the eks.amazonaws.com/role-arn annotation to the TaskPod ServiceAccount. The API mounts the token into tif and tof itself; the webhook would put it in executors too.
Static keys
kubectl -n poiesis create secret generic poiesis-s3 \
--from-literal=AWS_ACCESS_KEY_ID=… \
--from-literal=AWS_SECRET_ACCESS_KEY=…s3:
region: eu-central-1
existingSecret: poiesis-s3Public data next to a private bucket
Public datasets on AWS (the Registry of Open Data) take unsigned requests. Add them as a named store, so the default store keeps your own credentials:
s3:
region: eu-central-1
roleArn: arn:aws:iam::<account>:role/poiesis-filer
objectStores:
- name: open-data
provider: s3
buckets: ["1000genomes", "gnomad-public-*"]
region: us-east-1 # the buckets' region
anonymous: trues3://1000genomes/… is then read without credentials; every other bucket goes through the role. A named store can also be an on-prem Ceph or MinIO with its own endpoint and existingSecret. See Several stores.
What is tested
CI runs s3:// inputs and outputs end to end against SeaweedFS on kind, with static keys, and one task that reads from the default store and writes to a named store whose keys open only its bucket. IRSA is covered by unit tests only; it has not been run on EKS in CI. Other S3 settings (encryption, requester pays, path or virtual-hosted style) are in Storage and staging.
