troubleshooting Question

Copying to an AWS S3 bucket from my local computer - access denied

Avatar of digitalwise
digitalwise asked on
S3AWS
6 Comments1 Solution19 ViewsLast Modified:
We are trying to copy a file using the CLI for AWS to an S3 bucket.

aws s3 cp e:\myfolder\2020\11\15 s3://xmode-data-exports/XXXXX/2020/11/15 --recursive --include *

We are getting an error message: An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied

We have a policy on the bucket:

{
    "Version": "2012-10-17",
    "Id": "PolicyXXX",
    "Statement": [
        {
            "Sid": "StmtXXXX",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::XXXXX:user/transfer2"
            },
            "Action": [
                "s3:GetObject",
                "s3:Get*",
                "s3:List*",
                "s3:ObjectOwnerOverrideToBucketOwner",
                "s3:PutObject",
                "s3:GetObjectTagging",
                "s3:PutObjectTagging",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::bucket",
                "arn:aws:s3:::bucket/*"
            ]
        }
    ]
}

Any ideas?  These permissions are going to be the death of me.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros