Step 1: User1 created the test-bucket & uploaded couple of files
Step 2: below policy is created and attached to the bucket
{
"Version":"2012-10-17",
"Id":"policy example",
"Statement":
[
{
"Effect":"Allow",
"Principal":"*",
"Action":["s3:List*","s3:Get*","s3:Put*"],
"Resource":"arn:aws:s3:::*"
}
]
}
Step 3: User1 used the s3cmd ls and able to see the bucket
Step 4: User2 used the s3cmd ls and not able to see the bucket
Step 5: User2 used the s3cmd ls s3://test-bucket and able to see the bucket content
Question: Is there any way we can define the policy/access on the bucket such that User2 is able to see the bucket (as mentioned in Step 4) ??
Thanks a lot in Advance