Set up cross account access for AWS S3

456 Views Asked by At

I have two AWS accounts, say A (for use of AWS services) and B(for s3). I want to access B's s3 bucket in account A's Data pipeline service to manage data transfer within Account B. I have access key pair for Account B. How can I set up S3 access to data pipeline service using access key pair?

1

There are 1 best solutions below

1
On

I am not familiar with Data Pipeline, but I suspect you will need to:

  • Add a Bucket Policy to the Amazon S3 bucket in Account-B that permits access from the IAM Role being used by Data Pipeline in Account-A
  • Add permissions to the IAM Role being used in Data Pipeline in Account-A so that it is permitted to access the bucket in Account-B (or granting permission for all buckets will work too)

The permissions need to be granted in both directions.

I suspect that this is more likely to work than giving Data Pipeline a special set of credentials to use when accessing that particular bucket.