rekognition index_faces : Unable to get object metadata from S3

0

Hi, I created a s3 bucket named: digiphoto-lumen-avventori-pdv-test (without special chars) in the us-east-1 region. I created a Role with: CloudWatchLogsFullAccess, AmazonS3FullAccess, AmazonDynamoDBFullAccess, AmazonRekognitionFullAccess I created a lambda function and a trigger for faces indexing.

I created the dynamodb table in same region (us-east-1) and the collection like this:


aws rekognition create-collection --collection-id avventori --region us-east-1

but when I uploading an image, the trigger raise the hateful exception: * An error occurred (InvalidS3ObjectException) when calling the IndexFaces operation: Unable to get object metadata from S3. Check object key, region and/or access permissions.*

Trying to detect faces from powershell CLI

aws rekognition detect-faces --region us-east-1 `
--image '{""S3Object"" : {""Bucket"" : ""digiphoto-lumen-avventori-pdv-test"", ""Name"" : ""image1.png"" }}'

the request's succeded (200 OK with correct response) Why python script fails ? What is the problem ? The key is correct, the region is correct the bucket is accessible with full permissions.

the python script starts with region:


s3 = boto3.client( 's3', region_name='us-east-1' )
rekognition = boto3.client( "rekognition", region_name='us-east-1' )
dynamodbTableName = "avventori"
dynamodb = boto3.resource( 'dynamodb', region_name='us-east-1' )
avventoriTable = dynamodb.Table( dynamodbTableName )

Cannot exit from this impasse. Can anyone give me a suggestion ? thanks

  • Can you share the full indexFaces python script code that will be helpful to answer the question? Also can you try DetectFaces with the same python script that lambda is running that will also be helpful to understand what's the issue

Luca
질문됨 3달 전105회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠