Error trying to configure Amazon S3 Recycle Bin policy

I am trying to transfer the S3 bucket to another as the developer leaves our team. I created another AWS account with S3. I do the following: https://aws.amazon.com/premiumsupport/knowledge-center/account-transfer-s3/

The Bucket policy for the original AWS account works fine, but when I try the destination policy:

{ "Version": "2012-10-17", "Statement": { "Effect": "Allow", "Action": "s3:*", "Resource": [ "arn:aws:s3:::sourcebucket", "arn:aws:s3:::sourcebucket/*", "arn:aws:s3:::destinationbucket", "arn:aws:s3:::destinationbucket/*" ] } } 

And update only the sourcebucket and dest bucket elements above with my account information, I get an error: The requested element is missing in the application - the "Basic" element is missing in the instruction "NO_ID-0"

+5
source share
1 answer

The assignment policy in the cited article is not a bucket policy. This is a user or group IAM policy.

Pay attention to the comment:

 #User or group policy in the destination AWS account 

This policy applies to a user or IAM group in the IAM console (unlike S3).

The original policy is actually a bucket policy, so it works as expected.

+5
source

Source: https://habr.com/ru/post/1234832/


All Articles