Interview Prep/AWS/IAM Best Practices

How do you handle service-to-service access between accounts at scale?

AdvancedProductionIAM Best Practices
Answer

Prefer resource policies with aws:PrincipalOrgID or aws:PrincipalOrgPaths for org-wide sharing (S3, SQS, SNS, KMS, Secrets Manager, ECR), and role assumption only where a resource policy is not supported. For API-level calls between services, use PrivateLink endpoint services or VPC Lattice with IAM auth policies (SigV4) so each call is authenticated by the caller's role. This avoids a mesh of N x N trust policies.

aws All AWS questions Roadmap: AWS core services

More on IAM Best Practices