Three people may or may not be able to read invoices-15vv76b: tomas, rosa and omar. Do not try any S3 command: ask the simulator instead.
-
Ask what IAM would decide for
tomasands3:ListBucketon the bucket:shaws iam simulate-principal-policy --policy-source-arn arn:aws:iam::123456789012:user/tomas --action-names s3:ListBucket --resource-arns arn:aws:s3:::invoices-15vv76b -
Ask the same about
rosa, keeping only the decision (theEvalDecisionof the first entry inEvaluationResults), and save it as text to~/rosa.txt. -
Do the same for
omar, into~/omar.txt. -
Tomas should never be able to delete the bucket. Check that with the simulator, without trying it.