-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[s3_object] An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied #2114
Comments
I'm also experiencing the same behavior, but even without specifying the version. Is there a way I can contribute to this issue? |
@dhoppe @yarons Can you please let me know if this PR solves your issue https://github.com/ansible-collections/amazon.aws/pull/2206/files? Thanks. @dhoppe I would also suggest to use the latest version of the amazon.aws collection with is 8.1.0. |
Also, can you make sure you query the same bucket and object from the CLI and the Ansible playbook? |
@alinabuzachis I used version 6.5.4 of the amazon.aws collection and applied the changes manually, but still get an error message. Same AWS account as S3 bucket:
Different AWS account than S3 bucket:
Just to be sure, I applied the changes to version 8.1.0 of the amazon.aws collection, but still no luck. Edit: I did some debugging using AWS CloudTrail and realised that I had to add
|
…lections#2206) SUMMARY Closes ansible-collections#2114 ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell
Summary
When I try to get a presigned URL for a specific version of an S3 object, the Ansible playbook fails. If I remove the version everything works fine.
Since the following command works fine, I can rule out missing permissions.
Since this is an S3 bucket including ACL and Access for other AWS accounts, I suspect that the
get_object_tagging
function is missing theExpectedBucketOwner
parameter.https://botocore.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/get_object_tagging.html
Issue Type
Bug Report
Component Name
s3_object
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Ubuntu 22.04
Steps to Reproduce
Expected Results
I expect to receive a presigned URL for a specific version of an S3 object.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: