- Newest
- Most votes
- Most comments
Hello.
Can SES perform any additional service-side authorization check that is not represented by IAM Policy Simulator and that could produce AccessDeniedException?
AWS explicitly states that the Policy Simulator evaluates specified actions, resources, and contexts without executing actual AWS service requests, and that results may differ from those in a live environment. Examples cited include VPC endpoint policies, role chaining, and multiple resource-based policies.
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html
The policy simulator results can differ from your live AWS environment. We recommend that you check your policies against your live AWS environment after testing with the policy simulator to confirm that you have the desired results. For more information, see How the IAM policy simulator works.
Therefore, I recommend testing with an IAM configuration that uses an asterisk for the resource ARN or has slightly broader permissions, and then gradually restricting the policy.

I would need to check the API logs in CloudTrail to be certain, but since the ARN is likely listed there, I believe that specific ARN is what is being evaluated.
Update: the issue is still unresolved.
I have continued narrowing it down:
SendEmail.AccessDeniedException.At this point, what additional authorization check can SES apply to the live
SendEmailrequest that would not appear iniam:SimulateCustomPolicy?If CloudTrail can expose the exact denied resource or authorization context, what fields should I inspect?