Skip to content

Instantly share code, notes, and snippets.

@sparkcodeuk
Created November 4, 2018 21:09
Show Gist options
  • Save sparkcodeuk/e2f66846c2a1a95ba597a51dd948a453 to your computer and use it in GitHub Desktop.
Save sparkcodeuk/e2f66846c2a1a95ba597a51dd948a453 to your computer and use it in GitHub Desktop.
{
"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"
}
@sparkcodeuk
Copy link
Author

Use with: aws --profile XXXXX s3api put-bucket-replication --bucket "NAME_OF_SOURCE_BUCKET" --replication-configuration "file://FILENAME.json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment