amazon web services - AWS CLI syncing S3 buckets with multiple credentials -


i have read-only access source s3 bucket. cannot change permissions or of sort on source account , bucket. not own account.

i sync files source bucket destination bucket. own account contains destination bucket.

i have separate sets of credentials source bucket not own , destination bucket own.

is there way use aws cli sync between buckets using 2 sets of credentials?

aws s3 sync s3://source-bucket/ --profile source-profile s3://destination-bucket --profile default 

if not, how can setup permissions on owned destination bucket can sync cli?

the built-in s3 copy mechanism, @ api level, requires request submitted to target bucket, identifying source bucket , object inside request, , using single set of credentials has both authorization read source , write target.

this supported way copy 1 bucket without downloading , uploading files.

the standard solution found @ http://docs.aws.amazon.com/amazons3/latest/dev/example-walkthroughs-managing-access-example2.html.

you can grant user access write bucket or can grant user access bucket... copying 1 bucket without downloading , re-uploading files impossible without complicity of both account owners establish single set of credentials both privileges.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -