A role with `AdministratorAccess` gets `AccessDenied ... with an explicit deny in a service control policy`
IntermediateTroubleshootingCloud identity: IRSA, Workload Identity and CI OIDC
Answer
Likely causes → An AWS Organizations SCP denies the action in that account or OU, for example a region restriction, a ban on iam:CreateUser, or protection for CloudTrail. SCPs cap what any identity in the account can do, admins included. A permissions boundary has a similar effect (... with an explicit deny in a permissions boundary).
Diagnose → The error message names the policy type. Then:
aws organizations list-policies-for-target --target-id <account-id> --filter SERVICE_CONTROL_POLICY
aws iam get-role --role-name ci --query Role.PermissionsBoundary
Fix → If the action is legitimate, request an SCP exception (often a condition on aws:PrincipalArn for a break-glass or pipeline role). Do not try to work around the guardrail.
Prevent → Publish your SCP guardrails to teams, and test pipelines in an account under the same OU as prod.
More on Cloud identity: IRSA, Workload Identity and CI OIDC
A pod configured for IRSA runs `aws sts get-caller-identity` and gets the node role (`eks-node-group-role`) instead of its own roleBeginner`An error occurred (AccessDenied) when calling the AssumeRoleWithWebIdentity operation: Not authorized to perform sts:AssumeRoleWithWebIdentity` from an IRSA podIntermediate`InvalidIdentityToken: No OpenIDConnect provider found in your account for https://oidc.eks.ap-south-1.amazonaws.com/id/ABC123`BeginnerIRSA env vars are present in the pod, but one legacy service still uses the node roleIntermediatePods without IRSA can still call AWS with the node's permissions through `169.254.169.254`IntermediateWith EKS Pod Identity, the pod gets `Unable to locate credentials` even though a pod identity association existsIntermediate