How do I find which S3 buckets an EC2 instance has access to?
My company has many S3 buckets. Our workflow is that we use an internal piece of software to set up an EC2 instance with the right permission using AWS lambdas (which I do not have access to). The permissions include access to one S3 bucket, depending on the current use-case (which client we are working with). We can view files from the other buckets, but only download from the one associated with that instance.
Currently we have to look up the name of the bucket in a spreadsheet depending on which client we are dealing with at the time. Is there a way to figure out which bucket we are connected to from within the EC2 instance?