Interview Prep/AWS/ECS, EKS, Lambda and ECR

EKS pods need access to S3 without node-level permissions. How?

IntermediateScenarioECS, EKS, Lambda and ECR
Answer

Situation read → IAM roles for service accounts or EKS Pod Identity.

What I'd do →

  1. With Pod Identity: install the agent add-on, then aws eks create-pod-identity-association --cluster-name prod --namespace app --service-account s3-reader --role-arn arn:aws:iam::111111111111:role/s3-reader
  2. Annotate nothing, pods use the SDK default chain
  3. Role trusts pods.eks.amazonaws.com
  4. Verify with aws sts get-caller-identity inside the pod

Why → Per-pod roles enforce least privilege instead of every pod inheriting the node role.

Interview tip → IRSA still works; Pod Identity is simpler across clusters.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on ECS, EKS, Lambda and ECR