VH
asked on
AWS Lambda
Trying to use Lambda functions but keep getting this Error Message about ARN User not satisfying the regular expression pattern.
"errorMessage": "An error occurred (ValidationException) when calling the StartLabelDetection operation: 1 validation error detected: Value 'arn:aws:iam::<ARNNUMBER>:user/testUSER01=+@' at 'notificationChannel.roleArn' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+",
"errorType": "ClientError",
"stackTrace": [
At what step did you get this error?
ASKER
HI Shalomc,
Was using an User ARN where I should have been using Role base ARN.
Was using an User ARN where I should have been using Role base ARN.
So is all good now?
ASKER
Not really, trying to get Lambda working with Amazon Rekognition Video
somehow it's working within the AWS CLI but unable to get the jobID from Lambda
somehow it's working within the AWS CLI but unable to get the jobID from Lambda
Are you using boto3?
Here's 2 tricks to test your Lambda locally.
AWS released SAM local, which is a CLI to test your Lambda function locally. https://aws.amazon.com/about-aws/whats-new/2017/08/introducing-aws-sam-local-a-cli-tool-to-test-aws-lambda-functions-locally/
I've been working with Lambda for longer than that, and mostly in Python.
My lambda functions include at the end some lines like this, assuming the lambda trigger function is "main"
AWS released SAM local, which is a CLI to test your Lambda function locally. https://aws.amazon.com/about-aws/whats-new/2017/08/introducing-aws-sam-local-a-cli-tool-to-test-aws-lambda-functions-locally/
I've been working with Lambda for longer than that, and mostly in Python.
My lambda functions include at the end some lines like this, assuming the lambda trigger function is "main"
def main(event=None, context=None):
# process your videos here
if __name__=='__main__':
event = {....} # setup a dictionary with the event and parameters to pass to Lambda
main(event=event, context=None)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.