Interview Prep/Kubernetes/EKS in Production

How do you give an EKS Pod access to S3 safely?

BeginnerProductionEKS in Production
Answer

Use IRSA or EKS Pod Identity with a dedicated ServiceAccount and an IAM role scoped to the exact bucket and prefix; never node role permissions or static access keys. Pod Identity avoids creating an OIDC provider per cluster and simplifies role trust.

aws eks create-pod-identity-association --cluster-name prod --namespace shop --service-account s3-reader --role-arn arn:aws:iam::123456789012:role/s3-reader
All Kubernetes questions

More on EKS in Production