내용으로 건너뛰기

Not authorized to perform textract:DetectDocument

0

Hi all, "error": "An error occured (AccessDeniedException) when calling the DetectDocumentText operation: User: arn:aws~1:iam:{accountId}:user/{myEmail}.com is not authorized to perform:textract:DetectDocumentText because no identity-based policy allows the textract:DetectDocumentText action".

How to fix this error?

질문됨 2년 전591회 조회

1개 답변
2

Hello.

As mentioned in the error message, I think the IAM user you are using ({myEmail}.com) does not have the IAM policy to allow you to run "textract:DetectDocumentText".
So, please check whether "textract:DetectDocumentText" is allowed in the IAM policy attached to the IAM user.
If it is not allowed, try attaching the following IAM policy.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "textract:DetectDocumentText"
            ],
            "Resource": "*"
        }
    ]
}

IAM actions related to textract are described in the following documentation.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazontextract.html

전문가

답변함 2년 전

전문가

검토됨 2년 전

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

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

관련 콘텐츠