AWS AWSCloudFormation documentation change
Summary
Added examples section demonstrating S3 Replication Time Control configuration with JSON/YAML templates
Security assessment
The change adds usage examples for replication configuration but does not address security vulnerabilities or introduce new security documentation. It focuses on feature implementation rather than security controls.
Diff
diff --git a/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationtime.md b/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationtime.md index c3c7481c7..ee42da0ac 100644 --- a//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationtime.md +++ b//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationtime.md @@ -3 +3 @@ -SyntaxProperties +SyntaxPropertiesExamples @@ -55,0 +56,100 @@ _Required_ : Yes +## Examples + +### Enable S3 Replication Time Control + +The following example creates a replication configuration with S3 Replication Time Control (S3 RTC) enabled. To use this example, replace `amzn-s3-demo-source-bucket` with the name of your source bucket and replace `amzn-s3-demo-destination-bucket` with the name of your destination bucket. Make sure to update the AWS Identity and Access Management (IAM) role and the replication rule as needed. + +#### JSON + + + { + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "AWS CloudFormation Template for S3 Bucket Replication", + "Resources": { + "MyS3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": "amzn-s3-demo-source-bucket", + "VersioningConfiguration": { + "Status": "Enabled" + }, + "ReplicationConfiguration": { + "Role": "arn:aws:iam::account:role/s3-replication-role", + "Rules": [ + { + "Id": "ReplicationRule1", + "Status": "Enabled", + "Filter": { + "Prefix": "" + }, + "Destination": { + "Bucket": "arn:aws:s3:::amzn-s3-demo-destination-bucket", + "ReplicationTime": { + "Status": "Enabled", + "Time": { + "Minutes": 15 + } + }, + "Metrics": { + "Status": "Enabled", + "EventThreshold": { + "Minutes": 15 + } + } + }, + "Priority": 1, + "DeleteMarkerReplication": { + "Status": "Enabled" + }, + "SourceSelectionCriteria": { + "ReplicaModifications": { + "Status": "Disabled" + } + } + } + ] + } + } + } + } + } + + +#### YAML + + + AWSTemplateFormatVersion: '2010-09-09' + Description: 'AWS CloudFormation Template for S3 Bucket Replication' + + Resources: + MyS3Bucket: + Type: 'AWS::S3::Bucket' + Properties: + BucketName: 'amzn-s3-demo-source-bucket' + VersioningConfiguration: + Status: 'Enabled' + ReplicationConfiguration: + Role: 'arn:aws:iam::account:role/s3-replication-role' + Rules: + - Id: 'ReplicationRule1' + Status: 'Enabled' + Filter: + Prefix: "" + Destination: + Bucket: 'arn:aws:s3:::amzn-s3-demo-destination-bucket' + ReplicationTime: + Status: Enabled + Time: + Minutes: 15 + Metrics: + Status: Enabled + EventThreshold: + Minutes: 15 + Priority: 1 + DeleteMarkerReplication: + Status: Enabled + SourceSelectionCriteria: + ReplicaModifications: + Status: Disabled + +