I have an aws organisation with a few S3 buckets and member accounts. I added a bucket policy in one of the S3 bucket to allow its access from a member account based on the documentation the aws is providing in the following url.
https://docs.aws.amazon.com/AmazonS3/latest/dev/example-walkthroughs-managing-access-example2.html
I added policy in my master account S3 bucket as follows.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "Example permissions", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::702382032219:root" }, "Action": [ "s3:GetBucketLocation", "s3:ListBucket" ], "Resource": "arn:aws:s3:::testbucketfordip87" } ] }
But after logging in to the specific member account, I am still not able to see the S3 bucket there. So please let me know what went wrong here.