I've been provided a role by a customer that allows me access to a specific bucket (note: this is not a bucket policy). If I specify this role using the --profile
option in the AWS CLI, I can access the customer bucket but I can't access my own. If I use my default profile, I can access my buckets but I can't access the customer bucket. The CLI doesn't allow you to specify multiple profiles either.
I cannot copy this data to a disk first, there's too much. I need to execute something similar to the following:
aws s3 cp --recursive s3://source-bucket-in-my-account/folder/ s3://destination-bucket-in-different-account/folder
How can I achieve this?