<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Franklin Kabisayi on Medium]]></title>
        <description><![CDATA[Stories by Franklin Kabisayi on Medium]]></description>
        <link>https://medium.com/@franklinkabisayi?source=rss-10e8979fae4d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ptRd63ygvk-KJ-r3</url>
            <title>Stories by Franklin Kabisayi on Medium</title>
            <link>https://medium.com/@franklinkabisayi?source=rss-10e8979fae4d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:24:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@franklinkabisayi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My First AmazonS3 Replication : How to do it in 5 Minutes !]]></title>
            <link>https://medium.com/@franklinkabisayi/my-first-amazons3-replication-how-to-do-it-in-5-minutes-2c2337579ba8?source=rss-10e8979fae4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c2337579ba8</guid>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Franklin Kabisayi]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 04:13:24 GMT</pubDate>
            <atom:updated>2026-03-05T04:13:24.505Z</atom:updated>
            <content:encoded><![CDATA[<p>At the time of writing, I am participating in the AWS re/Start program offered by Orange DRC in partnership with AWS. To continue our exploration of the cloud, I was asked to complete an exercise: <strong>Configure replication between two S3 buckets located in two different Availability Zones</strong>.</p><p>To begin, let’s describe the main service in our problem: <strong>Amazon Simple Storage Service (Amazon S3)</strong> is an object storage service that offers cutting-edge scalability, data availability, security, and performance. Amazon S3 stores data as objects in Buckets. An o<strong>bject</strong> is a file and all the metadata that describes it. A <strong>bucket</strong> is a container for objects.</p><p>To store your data in Amazon S3, you must first create a bucket and specify a bucket name and an <strong>AWS Region</strong>. Then, you upload your data to this bucket as objects in Amazon S3. Each object has a key (or key name), which corresponds to the object’s unique identifier within the bucket.</p><p>S3 provides features that you can configure to suit your specific use case. For example, you can use S3 versioning to keep multiple versions of an object in the same bucket, allowing you to restore objects that were accidentally deleted or replaced. Buckets and the objects they contain are private and accessible only with explicitly granted access permissions. You can use bucket policies, AWS Identity and Access Management (IAM) policies, S3 access points, and access control lists (ACLs) to manage access.</p><p>Now that the context is established, let’s ask ourselves a question: <strong><em>Why implement replication?</em></strong></p><p>First, it’s important to understand that <strong>replication</strong> is a process of sharing information to ensure data consistency between multiple redundant data sources, thereby improving reliability, fault tolerance, and availability. <em>Data replication</em> occurs when the same data is duplicated across multiple devices.</p><p>Replication should not be confused with backup: backed-up data remains unchanged over time, reflecting a fixed state of the data, while replicated data constantly evolves as the source data changes.</p><p>To answer our question, let’s begin with a description of replication.</p><p>Replication is a process of sharing information to <strong>ensure data consistency between multiple redundant data sources</strong>. Here, redundancy isn’t limited to simply copying the data itself, but also involves copying the data’s state and information whenever it is added or modified in storage.</p><p>This is <strong>done to improve reliability, fault tolerance, and availability</strong>. This aspect emphasizes that replicated data must remain consistent with the system that produced it. This point underlies the following statement: <strong>Backed-up data does not change over time, reflecting a fixed state of the data, while replicated data constantly evolves as the source data changes.</strong></p><p>Despite this, someone familiar with Amazon S3 might ask : <strong><em>Why replicate an S3 instance when it is natively replicated?</em></strong></p><p>Indeed, an S3 instance is natively replicated within the same <strong>AWS region</strong>, a concept known as<strong> Same-Region Replication (SRR)</strong>. But suppose that in an extreme case, an entire AWS region fails due to an exceptional event such as a meteorological or geological disaster (typhoon, tsunami, etc.) or an armed conflict, how can the data be recovered given that the data centers are physically damaged?</p><p>This is where <strong>CRR (Cross-Region Replication)</strong> comes in, which I have chosen to call <strong>the assurance (CRR) of the assurance (SRR)</strong>, because this implementation guarantees high availability and a tolerance never before achieved in the history of computing, the famous <strong>99.999999999% data durability.</strong></p><p>Now that we know the basics, let’s set up our replication. This task, which can be completed in under 5 minutes, can be broken down into 3 steps:</p><ol><li>Create two S3 buckets (source and destination), each located in a different region;</li><li>Create a set of permissions that will allow the two buckets to interact, and a role that;</li><li>Create a replication rule and test that the replication works.</li></ol><p>Let’s get started!</p><blockquote>Note: For consistency with cloud computing and IT in general, we will use the AWS console in English.</blockquote><h3>Create two S3 buckets located in two different regions.</h3><ul><li>Go to the search bar located in the console, type <strong>“S3”</strong> and click on the first search result.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDsUWxOmIgCQ4iZp9SzGrg.png" /></figure><ul><li>You should land on the Amazon S3 service homepage and see a yellow button labeled <strong>“Create bucket”.</strong> Click it to access the bucket creation page.</li><li>In the configuration panel, under <strong>“General configuration”</strong>, you’ll first see the AWS region where your S3 bucket will be created (your current region), followed by a <strong>“Bucket type” </strong>label (the default for the <em>“General purpose”</em> option). Next is the <strong>“Bucket name”</strong> field. Enter a name following AWS naming conventions; for this exercise, I recommend<em> “aws-myfirst-s3-bucket-source”.</em> Finally, ignore the<strong> “Copy settings from existing bucket — optional”</strong> tag, as we won’t be importing configurations from an existing bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NsfR6LWr0BovXxIqKUlrsQ.png" /></figure><ul><li>For the two configuration groups <strong>“Object Ownership”</strong> and <strong>“Block Public Access settings for this bucket”</strong>, leave the default settings of <em>“ACLs disabled (recommended)”</em> and <em>“Block all public access”.</em></li><li>When you reach the <strong>“Bucket configuration”</strong>, change the setting from <em>“disable”</em> to <em>“enable”</em> to enable the detection of file changes in the buckets.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPYjdi6rGmgvAGZl5wwVYw.png" /></figure><ul><li>Ignore the remaining configurations and click the yellow <strong>“Create bucket”</strong> button.</li></ul><blockquote>Note: For the second bucket, change your AWS Region, then follow the same process and name the second bucket “aws-myfirst-s3-bucket-destination”.</blockquote><h3>Create a set of permissions that will allow the two buckets to interact</h3><ul><li>Go to the search bar located in the console, type “IAM” and click on the first search result.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dADpgMT24qd24_uXlLckeQ.png" /></figure><p>The <strong>AWS Identity and Access Management (IAM)</strong> service is used to manage AWS identities and access, securely manage and scale access to workloads and the workforce to optimize your agility and innovation in AWS. Here, we will create a set of permissions called a <strong>“Policy”</strong> and a <strong>“Role</strong>” to which this <strong>“Policy” </strong>will be assigned.</p><ul><li>Once you are in the <strong>IAM Dashboard</strong>, go to the IAM service’s sidebar menu and click on <strong>“Policies”.</strong> You will be taken to a new page (where the default AWS permissions are listed). Click the <strong>“Create policy”</strong> button to access the visual section for specifying the permissions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fFhyTShhUeHIgZm07_uTbg.png" /></figure><ul><li>On the permissions creation page, select the S3 service in the <strong>“Select a service”</strong> panel. Then expand the <strong>“Actions allowed”</strong> tab and allocate the <em>“ListBucket”</em> action, located in the<em> </em><strong>“List”</strong> action group, and the <em>“GetReplicationConfiguration”</em> action, located in the <strong>“Read”</strong> action group.</li><li>Next, expand the <strong>“Resources”</strong> tab and specify the resource types to which these actions can be applied by clicking <strong>“Add ARNs” </strong>for the<strong> “Bucket”</strong> category, not the <strong>“Endpoint”</strong> category.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LbjS01HKEXwZunPmsXCyZw.png" /></figure><ul><li>Once the <strong>“Specify ARNs” </strong>dialog box is open, enter the name of your source bucket, in this case <em>“aws-myfirst-s3-bucket-source”</em> in the <strong>“Resource object name”</strong> field and confirm by clicking <strong>“Add ARNs”</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Z2S_hcSoqEDsDTTIVjCjg.png" /></figure><ul><li>Click on <strong>“Add more permissions”</strong> to assign the actions <em>“GetObjectVersionForReplication”</em>, <em>“GetObjectVersionAcl”</em>, and <em>“GetObjectVersionTagging”</em>, all three in the <strong>“Read”</strong> group. Then proceed to specify the ARN by entering the source bucket name <em>“aws-myfirst-s3-bucket-source”</em> in the <strong>“Resource bucket name”</strong> field and using <em>“*”</em> in the <strong>“Resource object name”.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPE8IHc-fwpA9TCP2LlhTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_iF35PM4A0bPFselnEQ_w.png" /></figure><ul><li>For the last set of actions, click <strong>“Add more permissions”</strong> again, select S3, and then allocate the<em> “ReplicateObject” </em>and<em> “ReplicateDelete” </em>actions in the <strong>“Write”</strong> field, and <em>“ReplicateTags”</em> actions in the <strong>“Tagging” </strong>field, specify the source object by clicking <strong>“Add ARNs”</strong>. Next, specify the ARN by entering the destination bucket name<em> “aws-myfirst-s3-bucket-destination”</em> in the <strong>“Resource bucket name” </strong>field and using<em> “*”</em> in the <strong>“Resource object name”</strong> field.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKyTV7vNduHfvJsupof5tw.png" /></figure><p>After this configuration, click <strong>“next”</strong> to finalize the creation of the <strong>“Policies”.</strong> Give your policy a name for consistency in the naming convention; name it <em>“my-first-replication-policy”</em>, then click <strong>“Create policy”</strong>.</p><h3>Créer une règle de réplication et tester que la réplication fonctionne.</h3><p>We’ve made good progress; now let’s create the role.</p><ul><li>Go to the IAM service sidebar menu and click on <strong>“Roles”</strong> just above <strong>“Policies”.</strong> On the new page (which lists the default AWS roles), click the <strong>“Create role”</strong> button. This will take you to the role creation page.</li><li>For<strong> “Trusted entity type”,</strong> leave <strong>“AWS Service”</strong> as the entity type. Since we’ll be applying our role to an S3 bucket, simply select <strong>“S3”</strong> in the <strong>“Use case”</strong> field. Then click <strong>“Next”.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkTpK4fqA0JoYA6LV2XblQ.png" /></figure><ul><li>Once in <strong>“Add permissions”</strong>, go to the search bar located just below <strong>“Permissions policies”</strong> and type the name of the policy we created earlier, <em>“my-first-replication-policy”</em>, check the box next to it, and click <strong>“next”</strong> to proceed. In the following step, assign a name to the role, <em>“my-first-replication-role”</em>, maintaining consistency in the naming convention, and then click <strong>“Create role”.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7CbpGBjgcVgBf-vxbbrtg.png" /></figure><ul><li>Return to the S3 service using the search bar. You will be taken to the S3 service dashboard, where you will see the S3 buckets we created earlier.</li><li>- Click on the name of your source S3 bucket and go to the<strong> “Management” </strong>tab. Navigate to the <strong>“Replication rules”</strong> panel and click<strong> “Create replication rule”.</strong> In the <strong>“Create replication configuration”</strong> panel, assign a name, following our naming convention, such as <em>“my-first-replication-rule”.</em> Then, in the <strong>“Source bucket”</strong> panel, select<em> “Apply to all objects in the bucket” </em>to enable replication of all objects contained in the source bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3nbHiNMHhB3TsFF-V6DoQ.png" /></figure><ul><li>In <strong>“Destination”</strong>, verify that the default option is <em>“Choose a bucket in this account”</em> and browse to your S3 destination bucket, <em>“aws-myfirst-s3-bucket-destination”</em>, by clicking <strong>“Browse S3”</strong>. In <strong>“IAM role”</strong>, verify that the option is <em>“Choose from existing IAM roles”</em> and select our previously created role <em>“my-first-replication-role”</em>, then save by clicking <strong>“Save”</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6_sKmqecF8x4bZXIG2qLw.png" /></figure><ul><li>You should see it displayed! Make sure that <strong>“Replicate existing objects”</strong> is set to <em>“No, do not replicate existing objects”</em> and click <strong>“Submit”</strong> as we have just created our S3 source bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*9uEF4llBe-JjZIVY0SHn3w.png" /></figure><ul><li>To test, go to the S3 source bucket, click on the name <em>“aws-myfirst-s3-bucket-source”</em>, and then click the <strong>“Upload”</strong> button. When the upload page appears, go to your storage, select a file, and then drag and drop it into the <strong>“Drag and drop files” </strong>area.</li><li>Go to the S3 destination bucket, <em>“aws-myfirst-s3-bucket-destination”</em>, and verify that the uploaded file has been replicated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97inqFjfxmISlR4YQlBtZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUCthpo2kFOFrwLfWIfNbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qG-kbDM9Cg49OQBcxg_Tgw.png" /></figure><p>Your replication is now configured!</p><p>Thanks for sticking with me this far; this was my first article. Leave your feedback in the comments!</p><p>See you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c2337579ba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>