Created
November 4, 2018 21:09
-
-
Save sparkcodeuk/e2f66846c2a1a95ba597a51dd948a453 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Rules": [ | |
{ | |
"Status": "Enabled", | |
"Prefix": "", | |
"Destination": { | |
"Account": "DESTINATION_AWS_ACCOUNT_ID", | |
"Bucket": "arn:aws:s3:::DESTINATION_S3_BUCKET_NAME", | |
"AccessControlTranslation": { | |
"Owner": "Destination" | |
}, | |
"StorageClass": "STANDARD_IA" | |
}, | |
"ID": "UNIQUE_ID_FOR_CRR_RULE" | |
} | |
], | |
"Role": "arn:aws:iam::XXXXXXXXXXXX:role/service-role/s3crr_role_for_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use with:
aws --profile XXXXX s3api put-bucket-replication --bucket "NAME_OF_SOURCE_BUCKET" --replication-configuration "file://FILENAME.json"