How to copy my s3 objects from one aws account to different aws account?

  Рет қаралды 5,305

Tarun Technophile

Tarun Technophile

Күн бұрын

#s3 #iam #awsservices #aws #awstraining
Hi viewers, please follow the process to work on the same.
please use below link to join the Whatsapp group
chat.whatsapp.com/LqCC6hb04IY...
---------------------
#source bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DelegateS3Access",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::target-accountuserid/role"
},
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::source-bucket-arn/*",
"arn:aws:s3:::source-bucket-arn"
]
}
]
}
--------------
####iam policy in destination account to copy s3 objects from source
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::source-bucket",
"arn:aws:s3:::source-bucket/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::destination-bucket",
"arn:aws:s3:::destination-bucket/*"
]
}
]
}

Пікірлер: 10
@prof2k
@prof2k Жыл бұрын
Thanks so much. This is100% accurate and it worked like a charm.
@anil-kumar75
@anil-kumar75 Жыл бұрын
You were back, superb video..
@chu3171
@chu3171 9 ай бұрын
Thank you so much, it works.
@aparnabhat4306
@aparnabhat4306 10 ай бұрын
Can I do it using IAM role instead of user?
@UditBareja-pr5pv
@UditBareja-pr5pv 4 ай бұрын
hey, if i want to copy only specific objects and not full bucket , then what?
@pratikagrawal3614
@pratikagrawal3614 Жыл бұрын
fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied please help in this error
@taruntechnophile
@taruntechnophile Жыл бұрын
Cross verify your access keys and secret keys
@PraveenKumar-lq8im
@PraveenKumar-lq8im Жыл бұрын
A simpler solution is to use --copy-props none while copying Example: aws s3 cp s3://source/object-name s3://destination/object-name/ --copy-props none
@hatimabualrub6071
@hatimabualrub6071 Ай бұрын
Kindly stop posting like these misleading info
@taruntechnophile
@taruntechnophile 28 күн бұрын
Okay do you have any issues
How to use AWS Transit Gateway in 2 different regions in single aws account?
20:46
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 11 МЛН
Upgrade Go to v1.22.5 and install Go Air
2:47
Ali
Рет қаралды 11
Automating S3 Data Replication Between AWS Accounts
11:19
AWS with Avinash Reddy
Рет қаралды 8 М.
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН