ClientError: An error occurred (AccessDenied) when calling the PutObject operation:…
- User
ClientError: An error occurred (AccessDenied) when calling the PutObject operation: User: arn:aws:iam::312762694762:user/rbro-aa_CCOE-17208 is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::sagemaker-eu-central-1-312762694762/docTR-async-inference/input/TEST_PDF.pdf" with an explicit deny in an identity-based policy
- Assistant
The error message you're seeing indicates that the AWS Identity and Access Management (IAM) user
rbro-aa_CCOE-17208is being explicitly denied permission to perform thes3:PutObjectoperation on the specified S3 bucket object. This is typically due to an explicit deny rule in the user's identity-based policy, or in some cases, a service control policy, or resource-based policy associated with the S3 bucket.To resolve this issue, you can follow these steps: