AWS Lambda: Cross-account pass role is not allowed.

Today I came across the following exception while working with the AWS SDK for Amazon Lambda: com.amazonaws.AmazonServiceException: Cross-account pass role is not allowed. (Service: AWSLambda; Status Code: 403; Error Code: AccessDeniedException; Request ID: xxx) At first I was a bit puzzled where this exception might come from; but when I found out what the problem … Continue reading AWS Lambda: Cross-account pass role is not allowed.