A release needs a new IAM permission. The deploy went out but the feature fails with AccessDenied. What's the fix and the lesson?
BeginnerScenarioDeployments and releases
Answer
Situation read → The code shipped before the permission it depends on. A sequencing problem between app and infra pipelines.
What I'd do →
- Confirm from the logs:
AccessDeniedException: User: arn:aws:sts::...:assumed-role/api-irsa/... is not authorized to perform: sqs:SendMessage. - Add the permission in Terraform to the pod's IRSA or Pod Identity role, review the plan, apply.
- Pods pick up new IAM policy without restart, since credentials are fetched per call, though IAM changes can take a few seconds to propagate.
- Lesson: infra changes ship before the app that needs them. Either keep the IAM policy in the same repo and pipeline as the service, or make the app pipeline check that the infra version is applied first.
Why → The permission is part of the release; treating it as separate guarantees this outage again.
Interview tip → Quote the error format; it shows you have read real AccessDenied messages.
More on Deployments and releases
A deploy went out and p99 latency doubled. Walk me through it.IntermediateYou deployed a new version and half the pods are in CrashLoopBackOff. What do you do?BeginnerA release passed every test in staging but broke in production. How do you investigate?IntermediateHow would you design a zero-downtime deployment for a stateless API on Kubernetes?BeginnerEvery deploy causes a short spike of 502 errors from the ALB. Why, and how do you fix it?IntermediateHow would you set up a canary release, and what decides whether it gets promoted?Intermediate