I have a S3 bucket in AWS Account A. I want to access this S3bucket from another AWS Account B. I tried giving policy to S3bucket-A but it did't work out.
Amazon has published a detailed guide on how to do this here.
For this to work, there are two things you have to do:
If you're not sure how to configure everything, follow the instructions step by step in the link above.