Unable to save access point policy

42 Views Asked by At

This is my access point policy:

    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Statement1",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:PutObject",
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:ap-south-1:my_account_number:accesspoint/my_access_point_name/object/*"
        }
    ]
}

I am unable to save this policy. I am getting a Access Denied error:

enter image description here

Note: That I am using root account

1

There are 1 best solutions below

1
On

I tried everything after consulting with my co-worker. We came to a conclusion that we should AWS CLI. Then it worked. I could access my S3 bucket through prod server as well as local host. Just ask ChatGPT "How to login in aws cli in ec2".