This rule ensures cross-region replication is enabled for S3 buckets.
Rule | S3 bucket cross-region replication should be enabled |
Framework | NIST Cybersecurity Framework (CSF) v1.1 |
Severity | ✔ Critical |
Rule: S3 Bucket Cross-Region Replication for NIST Cybersecurity Framework
S3 Bucket Cross-Region Replication (CRR) is a critical feature for enhancing the resilience and redundancy of your data storage on AWS. Adhering to the NIST Cybersecurity Framework (CSF) v1, enabling CRR helps meet the Recover (RS) function by allowing for quick restoration of data after a disruption.
Description of S3 Cross-Region Replication
Cross-Region Replication (CRR) is an Amazon S3 feature that automatically replicates data from one S3 bucket to another S3 bucket in a different AWS region. This is crucial for disaster recovery scenarios and helps meet compliance requirements. CRR is managed at the bucket level and includes the following features:
Troubleshooting Steps for CRR
Verify Replication Configuration
Check Replication Status
Review IAM Policies and Bucket Policies
s3:GetReplicationConfiguration
, s3:ListBucket
, and s3:PutObject
permissions for the corresponding buckets.Necessary Codes
IAM Role for Replication
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetReplicationConfiguration",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::source-bucket"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ReplicateObject",
"s3:ReplicateDelete",
"s3:ReplicateTags"
],
"Resource": "arn:aws:s3:::destination-bucket/*"
}
]
}
Enabling CRR Using AWS CLI
aws s3api put-bucket-replication --bucket source-bucket-name --replication-configuration file://replication.json
Where
replication.json
is a JSON file that contains the replication configuration details.Step by Step Guide for Remediation
Step 1: Verify Prerequisites
Step 2: Establish IAM Roles for Replication
Step 3: Configure Cross-Region Replication
Step 4: Monitor Replication
Step 5: Test the Configuration
By following these steps and ensuring proper configuration, S3 CRR will be in compliance with the NIST CSF for improved data resiliency.