You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied error on s3.delete_object(Bucket=bucket, Key=source_file).
Note: Permission for this operation is properly set and I can delete this object using
aws s3api delete-object --bucket {bucket_name} --key {object_path_for_file}.
The text was updated successfully, but these errors were encountered:
Hmmm thats super weird s3api delete-object would work and s3.delete_object wouldn't. They use the exact same logic in botocore under the hood to perform that API call.
@neelay-shah - Can you please let us know if you are still getting the error with latest version of boto3 and botocore ?
swetashre
added
s3
closing-soon
This issue will automatically close in 4 days unless further comments are made.
and removed
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
labels
Jan 15, 2020
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
I am getting botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied error on s3.delete_object(Bucket=bucket, Key=source_file).
this can be due to existing issue on aws/aws-cli
Note: Permission for this operation is properly set and I can delete this object using
aws s3api delete-object --bucket {bucket_name} --key {object_path_for_file}.
The text was updated successfully, but these errors were encountered: