Using the CLI for AWS:
To be sure that a destination account owns an S3 object copied from your account, grant the destination account (Yuva AI’s) the permissions to perform the cross-account copy. Follow these steps to configure cross-account permissions to copy objects from a source bucket in your account to a destination bucket in Yuva AI’s:
1. Attach a bucket policy to the source bucket in your account.
Important: For the value of Principal, replace arn:aws:iam::222222222222:user/Jane with the ARN of the IAM identity for your bucket. This can be found in your project dashboard. Also replace the “arn:aws:s3:::awsexamplesourcebucket” with the ARN of your source bucket.
Add a Comment