I am scratching my head on a permission issue. I am using a named AWS profile to deploy and have no problem in this. IAM permissions are all ok and I have even tried setting the user to a full administrator in an attempt to figure this out.
The problem is that access to services (specifically in this case SQS) is giving a permission error. If, however, I do an aws config update in the lambda function with the same access key and secret that is being used to deploy there is no problem.
Environment: MacOS latest
IAM role statement is sqs:* on all resources
Has anyone seen this before and do they have any suggestions?