An error occurred (accessdenied) when calling the createmultipartupload operation: access denied

Error: An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access denied.

This error message indicates that the user or role attempting to execute the “CreateMultipartUpload” operation does not have the appropriate permissions to perform the action. In AWS (Amazon Web Services), access to different services and operations is controlled through IAM (Identity and Access Management). IAM policies define what actions are allowed or denied for specific users, roles, or groups.

Solution:

To resolve this issue, you need to grant the necessary permissions to the user or role performing the operation. Here’s an example of how you can modify an IAM policy to allow the “CreateMultipartUpload” operation:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:CreateMultipartUpload"
      ],
      "Resource": [
        "arn:aws:s3:::your-bucket-name/*"
      ]
    }
  ]
}
  

In this example, the policy permits the “CreateMultipartUpload” action for all resources within a specific S3 bucket (“your-bucket-name”). Please make sure to replace “your-bucket-name” with the actual name of your bucket. Additionally, the resource ARN (Amazon Resource Name) can be customized to specify a more granular level of access control.

Once the policy is modified and applied to the user or role, they should have the necessary permissions to successfully execute the “CreateMultipartUpload” operation without encountering the “AccessDenied” error.

Read more

Leave a comment