<?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 Carole Munkeng on Medium]]></title>
        <description><![CDATA[Stories by Carole Munkeng on Medium]]></description>
        <link>https://medium.com/@carolemunkeng?source=rss-143103f1b3f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-R2st9DIUhnswfq_</url>
            <title>Stories by Carole Munkeng on Medium</title>
            <link>https://medium.com/@carolemunkeng?source=rss-143103f1b3f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 00:56:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@carolemunkeng/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[AWS Hands-on-Project: Secured AWS RDS MySQL Deployment with Baston Host and MySQL Workbench]]></title>
            <link>https://medium.com/@carolemunkeng/aws-hands-on-project-secured-aws-rds-mysql-deployment-with-baston-host-and-mysql-workbench-32f7e356f228?source=rss-143103f1b3f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f7e356f228</guid>
            <dc:creator><![CDATA[Carole Munkeng]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 12:16:48 GMT</pubDate>
            <atom:updated>2026-10-07T12:16:48.415Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you are working on the development team, your application has a database containing important business information and only a few people on the team should ever have administrative access to it. Now imagine someone suggests “Why don’t we just make the database public? then the authorized team members can connect whenever they need to”. It sounds convenient, but convenience is not the same thing as security. A database containing valuable information should not be exposed directly to the public Internet simply because a few authorized people need access to it.</p><p>So how do we make the database accessible to the right people without making the database itself public?. This is where P<strong>rivate Subnet</strong>, S<strong>ecurity Groups </strong>and the <strong>Bastion Host (BH)</strong> come into the picture. The idea is simple; keep the database private and create a control path for authorised access.The RDS MySQL database sits inside a private subnet away from direct internet access, Bastion host deployed in a public subnet act as controlled entry point that authorized users connect to, using SSH and from there a path is established to the private database. So the architecture would look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiQyH0pMuBWwFsdMNtejOQ.jpeg" /><figcaption>Graphical Infrastructure of Secured Access to Private RDS MySQL via Bastion Host</figcaption></figure><p>But securing the database is only one part of the story. Once the database is safely put in the private subnet how do we actually work with the data? this is where <strong>MySQL Workbench</strong> becomes useful as it provides the graphical interface through which we can connect to and visualize the data in the database. The architecture can therefore be summarised as;</p><p><strong><em>Authorized User — → Bastion Host — → Private RDS — → MySQL Workbench</em></strong></p><p>The following hands-on demo is a walk through on how I built this environment from the <strong>VPC </strong>and <strong>subnets</strong> to <strong>security groups</strong> <strong>EC2 , RDS,</strong> <strong>Bastion Host access </strong>and <strong>MySQL workbench.</strong></p><h4><strong>Step-by-Step Hands-on Demo (Beginner friendly)</strong></h4><p><strong><em>Objective:</em></strong><em> Create the isolated AWS network in which all project resources will live.</em></p><ul><li>Open the <strong>AWS Management Console</strong>.</li><li>Go to <strong>VPC</strong> &gt; Choose <strong>Create VPC.</strong></li><li>Select the <strong>VPC and More</strong></li><li>Name the VPC <strong>DATABASE-VPC</strong>.</li><li>Choose 2 Availability Zones.</li><li>Create 2 public subnets and 2 private subnets.</li><li>Select none for NAT and VPC endpoints</li><li>Review the information and click on <strong>Create the VPC.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNj2QGwof5N1DjVlEsd-Wg.png" /><figcaption>VPC Configuration</figcaption></figure><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVj9ZBI1_7MJJKneCYYtUw.png" /><figcaption>VPC created with 2 AZs, 2 private and 2 public subnets</figcaption></figure><p><strong>Step 2: Create the RDS Subnet Group</strong></p><p><strong><em>Objective:</em></strong><em> Tell RDS which private subnets it can use for the database</em></p><ul><li>Go to the <strong>AWS Management Console</strong>.</li><li>Open the <strong>Aurora and</strong> <strong>RDS</strong> service.</li><li>Select <strong>Subnet groups</strong>. &gt; click <strong>Create Subnet Group</strong>.</li><li>Name it <strong>DB-subnetgroup</strong>.</li><li>Select DATABASE-VPC.</li><li>Select the private subnets in the two Availability Zones.</li><li>Create the subnet group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGQgwyTL7Ol-ygWbajhOmg.png" /><figcaption>Create Subnet Group</figcaption></figure><p><strong>Step 3: Create Bastion Host Security Group</strong></p><p><em>Objective: Allow only the administrator’s workstation to reach the Bastion over SSH.</em></p><ul><li>Go to the <strong>VPC</strong> console.</li><li>Select <strong>Security Groups &gt; </strong>Click <strong>Create Security Group</strong></li><li>Create a Security Group named Bastion-SG.</li><li>Select DATABASE-VPC.</li><li>Add inbound rule: <strong>SSH, TCP 22</strong> &gt; For Source, select <strong>My IP.</strong></li><li>Create the Security Group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ir9VN5-b5fb__XDy6N-6g.jpeg" /><figcaption>Bastion Security Group Configuration</figcaption></figure><p><strong>Step 4: Create the Database Security Group</strong></p><p><strong><em>Objective: </em></strong><em>Establish a security group for the RDS instance to control inbound trafffic, allowing connections from your ip and from the Bastion host</em></p><ul><li>From the <strong>VPC</strong> console:</li><li>Select <strong>Security Groups</strong>. &gt; Click <strong>Create Security Group</strong>.</li><li>Name it RDS-SG &gt; Add description ; <em>Security group for RDS access</em></li><li>In VPC field, choose the project VPC; DATABASE-VPC.</li><li>Click on Add inbound rule -Type : <strong>All Traffic</strong>, source: <strong>My IP</strong></li><li>Add inbound <strong>MySQL/Aurora TCP 3306</strong>, For Source, select <strong>Bastion-SG.</strong></li><li>Click “create security group”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_zvvN4len1YXggH4lbtdg.png" /><figcaption>Configuration for RDS Security Group creation</figcaption></figure><p><strong>Step 5: Launch the Database EC2 Instance</strong></p><p><strong><em>Objective: </em></strong><em>Deploy an EC2 instance in a private subnet to serve as a compute resource that will later interact with the RDS Database</em></p><ul><li>Open the EC2 console and click on <strong>Launch Instance</strong>.</li><li>Name the instance <strong>DB-EC2.</strong></li><li>Choose the AMI , Amazon Linux.</li><li>Select appropriate instance type e.g t2micro</li><li>Select the required key pair or create one .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*-YF7C6WxkQHa878c-AeEww.png" /><figcaption>Launch Instance</figcaption></figure><ul><li>Under Network settings, Click Edit and choose the project VPC, DATABASE-VPC.</li><li>Select a private subnet.</li><li>Disable auto-assign public IP.</li><li>Select Existing Security group, RDS-SG</li><li>Review the configuration and Click Launch Instance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPtjQ6D8k1qjX6z6m8UKYg.png" /><figcaption>Launch Instance Network Setting for RDS EC2 Instance</figcaption></figure><p><strong>Step 6: Launch Bastion Host Instance</strong></p><p><strong><em>Objective:</em></strong><em> Create the public jump server host used for controlled administrative access.</em></p><ul><li>Open the EC2 console and click on <strong>Launch Instance</strong>.</li><li>Name the instance Bastion-EC2.</li><li>Choose the AMI , Amazon Linux.</li><li>Select an appropriate instance type available to your account (for the sake of the demo, choose t2micro)</li><li>Select the required key pair or create one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*C6lovxaMMH3ufmMn88x6JQ.png" /></figure><ul><li>Under Network settings, Click Edit and choose the project VPC, ATABASE-VPC.</li><li>Select a Public subnet and enable auto-assign public IP.</li><li>Select Existing Security group, Bastion-SG</li><li>Review the configurations and Click Launch Instance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jFpOd69tVWBMDFFTbMD-kw.png" /><figcaption>Launch Instance Network Setting for RDS EC2 Instance for Bastion Host</figcaption></figure><p><strong>Step 7: Create the RDS MySQL Database</strong></p><p><strong><em>Objective</em></strong><em>: Deploy the managed MySQL database in the private DB subnet group.</em></p><ul><li>Open the <strong>Aurora and</strong> <strong>RDS</strong> service.</li><li>In the left-hand menu, select <strong>Database</strong>.</li><li>Click <strong>Create Database &gt; </strong>Choose Full configuration method.</li><li>Choose MySQL.</li><li>Under templates, choose Sandbox(For practice)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvaajHVyhDU0Q3Yu2WbnQA.png" /><figcaption>Creating Database with Sandbox template</figcaption></figure><ul><li>Set DB identifier to <strong>database-1.</strong></li><li>Set the master username e.g admin.</li><li>Under Credentials Management, choose <strong>“Self managed”</strong></li><li>Create a strong password and store it securely.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubKVF3simiIn_p7IxM6XWw.png" /><figcaption>Credentials for the RDS database</figcaption></figure><ul><li>Select the suitable instance class available in your account/region.</li><li>For a small lab, choose General Purpose SSD rather than unnecessary Provisioned IOPS.</li><li>Under Connectivity, choose connect to an EC2 compute resource</li><li>Select the RDS-EC2 launched earlier</li><li>Choose DB-subnet group&gt; existing DB subnet group, db-subnetgroup</li><li>Attach RDS-SG under “Additional VPC Security”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vE3C3iF3F5qSYEfkgX_rGw.png" /><figcaption>Database connectivity settings</figcaption></figure><ul><li>Review and Create the database.</li><li>Wait until the status becomes Available.</li></ul><p><strong>Step 8: Connect to the RDS Using MySQL Workbench</strong></p><p><strong><em>Objective:</em></strong><em> Create an SSH-tunnel connection from your workstation to RDS through the Bastion.</em></p><ul><li>Open <strong>MySQL Workbench</strong></li><li>Click on the <strong>“+” </strong>Sign next to <strong>MySQL Connections</strong></li><li>Configure the connection settings</li></ul><p>— <strong>Connection Name:</strong> Enter ST-RDS as the connection nam</p><p>—<strong> Connection Method:</strong> Select <strong>standard TCP7IP over SSH</strong></p><p>—<strong> SSH Hostname:</strong> Enter the Bastion public IP under SSH Hostname</p><p>—<strong> SSH Username:</strong> ec2-user</p><p>—<strong> SSH Key File</strong>: Click on 3 dots to import the keypairYour EC2 .pem key</p><p>— <strong>MySQL Hostname</strong>: RDS endpoint</p><p>— <strong>MySQL Port</strong>: 3306</p><p>— <strong>MySQL Username</strong>: admin</p><p>— <strong>Password</strong>; Click “ <strong>store in vault”</strong> input the RDS password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivo5IbFbpkTccTzdd-cL_g.png" /><figcaption>Testing RDS Data Connection on MySQL Workbench</figcaption></figure><ul><li>Click on <strong>Test connection</strong></li><li>If the settings are correct, the connection should be confirmed.</li><li>Once confirmed, Click: <strong>OK</strong></li></ul><p><strong>Output</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50qtnQ6ul7kFpDvqj7bs9w.png" /><figcaption>Connection Successful For RDS MySQL on MySQL Workingbench</figcaption></figure><p>You can then double-click the created connection to open the MySQL Workbench SQL Editor. From there, you can import or add MySQL data, create and manage databases and tables, execute SQL queries, sort and filter data, view records, and perform other necessary database administration tasks.</p><p><strong>Key Lessons Learned</strong></p><ol><li>The biggest lessons here is that two systems can work together securely. In the project<strong> AWS</strong> sets the environment and controls the security while <strong>MySQL workbench</strong> uses the secure connection to perform database operations. So in summary <strong>AWS</strong> protects the <strong>path to the database</strong>, and <strong>MySQL Workbench</strong> gives us a practical way to <strong>work with and visualize the data.</strong></li><li>This project showed that a database in AWS goes beyond just creating it. It is about how different AWS resources (VPCs, Security groups, Bastion Hosts) can work together to provide connectivity, security and controlled access.</li><li>Another lesson gotten through the project is that security groups can reference other security groups. Instead of allowing traffic from a specific IP address, one SG can use another SG as its source. E.g, the RDS-SG can allow MySQL traffic on port 3306 from the Bastion-SG.</li></ol><p><strong>#AWS #AmazonWebServices #CloudComputing #MySQLWorkbench #DatabaseManagement #BastionHost #DevOps #AWSHandsOn</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f7e356f228" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Hands-on-Project: Managing Growth with AWS Organization and Service Control Policies (SCPs)]]></title>
            <link>https://medium.com/@carolemunkeng/aws-hands-on-project-managing-growth-with-aws-organization-and-service-control-policies-scps-d37bbc4ef402?source=rss-143103f1b3f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d37bbc4ef402</guid>
            <category><![CDATA[aws-organizations]]></category>
            <category><![CDATA[aws-scp]]></category>
            <dc:creator><![CDATA[Carole Munkeng]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 18:08:45 GMT</pubDate>
            <atom:updated>2026-09-30T18:08:45.216Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a company starts with a single AWS account and launches its application. At first the environment is relatively small, and a few administrators can manage the infrastructure; developers deploy applications and everything is relatively easy to monitor.</p><p>What happens when the application starts growing? More traffic may require more EC2 Instances, Auto Scaling, Load balancer, Cloud front and stronger security controls, but there is another type of scaling that is easy to overlook, <strong>the Organization itself is scaling. </strong>More infrastructure means more environments, more teams, more users, and potentially more people involved in managing AWS resources. At that point managing everything from a single AWS account can become increasingly complicated. Imagine a company with separate environments <strong><em>Production, Development, and Testing;</em></strong> instead of putting everything into one AWS account, <strong>AWS Organization</strong> gives the company the possibility to manage <strong>multiple AWS accounts</strong> centrally, and organize them into <strong>Organizational Units (OU).</strong></p><p><strong><em>For example</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*QtCGiUeFdwxtygqlNVHjoA.png" /><figcaption>Multi-account AWS Environment Structure</figcaption></figure><p>The organization can then apply governance control at the appropriate level which gives the organization a much clearer separation of environments.</p><p>As part of my AWS/DevOps learning journey to understand this practically, I completed a hands-on project focused on <strong>AWS Organizations and Service Control Policies (SCPs).</strong> The goal was not just to understand the multi-account structure in AWS theoretically, but to actually create an organizational structure, apply governance, and test how policies can control what resources an AWS account is allowed to create. Below is a hands on demo i used.</p><p><strong>DEMO: Hands-On-Project (Beginner Friendly)</strong></p><p><strong>STEP 1 — Set Up an AWS Organization</strong></p><ul><li>Log in to the AWS Management Console using the management account.</li><li>Open AWS Organizations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*HPEGqYlXBLnRCNDv0Doiog.png" /><figcaption>AWS Console</figcaption></figure><ul><li>Click Create an organization.</li><li>Follow the prompts to create .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*FUNS-I4dqFIf4HybdgIWLg.png" /><figcaption>AWS Organization Console</figcaption></figure><p><strong>STEP 2 — Add a new AWS Account</strong></p><ul><li>In AWS Organizations, click Add an AWS account.</li><li>Choose Create an AWS account.</li><li>Enter a unique Account Name, for example my-account.</li><li>Enter the email address for the new account.</li></ul><p><em>Tip(for the sake of the demo): You can use a separate active Gmail account or modify an existing Gmail address by appending “+1” (or another string) before the “@gmail.com” to simulate a new email</em></p><ul><li>Click Create AWS Account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*0CRrYIuZBNwnQqLB80OcJA.png" /><figcaption>Add an AWS Account</figcaption></figure><p><strong>STEP 3 — Record the New Account Information</strong></p><p>After account creation, save details of:</p><ul><li><strong>IAM Role Name</strong></li><li><strong>Account ID,</strong></li><li><strong>Account Name</strong></li></ul><p>Save this information(e.g .in Notepad).<em>These details will be needed to switch to the newly created account in step 10</em></p><p><strong>STEP 4 — Create an Organizational Unit (OU)</strong></p><ul><li>Select the Root&gt; choose Actions</li><li>Create new</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*x2LZqZJ6j-IcRAF82vM2xw.png" /><figcaption>Create New Organizational Unit</figcaption></figure><ul><li>Give OU a name such as Dev_OU or Test_OU (Suitable name for your environment)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*0JTR2fFNhx44EY340SH8HQ.png" /><figcaption>Add Organizational Unit Name</figcaption></figure><p><strong>STEP 5 — Move the New Account Into the OU</strong></p><ul><li>Select the newly created account.</li><li>Click Actions.</li><li>Choose Move.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*yQ_NzEo9OS5dUZuWm3wCDg.png" /><figcaption>Move Newly Aws Account to an OU</figcaption></figure><ul><li>Select the OU you created.</li><li>Click on “Move AWS account”.</li></ul><p><strong>STEP 7 — Enable SCPs</strong></p><ul><li>Open AWS Organizations.</li><li>Go to Policies.</li><li>Select SCPs.</li><li>Enable SCPs if they are not already active.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*yhLbKAVsnqhyYZEOClycbQ.png" /><figcaption>Enable and click on Service Control Policy</figcaption></figure><p><strong>STEP 8 — Create a custom policy</strong></p><p>Create a custom policy named Required_EC2_Tagging. Its purpose is to deny EC2 instance creation, together with associated EBS volumes, unless the specified <strong>CostCenter tag/value</strong> is provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*74T98u3zLX8afXhZUNyORQ.png" /><figcaption>Create New Service Control Policy</figcaption></figure><p><strong>STEP 8 — Add the SCPs policy configuration</strong></p><ul><li>Click the JSON Editor and paste the policy below (it describes what AWS should enforce)</li></ul><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br> {<br>   &quot;Sid&quot;: &quot;DenyEC2WithoutCostCenterTag&quot;,<br>   &quot;Effect&quot;: &quot;Deny&quot;,<br>   &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>   &quot;Resource&quot;: [<br>     &quot;arn:aws:ec2:*:*:instance/*&quot;,<br>     &quot;arn:aws:ec2:*:*:volume/*&quot;<br>   ],<br>   &quot;Condition&quot;: {<br>     &quot;StringNotEquals&quot;: {<br>          &quot;aws:RequestTag/CostCenter&quot;: &quot;111&quot;<br>     }<br>   }<br> }<br>  ]<br>}</pre><p><em>The policy is designed to deny the request when the required CostCenter tag/value condition is not satisfied. Here is the condition,</em></p><p>- Tag name : <strong>CostCenter</strong></p><p>-Value : <strong>111</strong></p><ul><li>Review the policy before creating it. Confirm that the intended service, action, resources and condition are present,</li><li>Then click Create Policy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*6IlfjmBbylkATLYPXBhWiQ.png" /><figcaption>Create Service Control Policy</figcaption></figure><p><strong>STEP 9 — Attach the SCP to the OU</strong></p><ul><li>From the SCP list</li><li>select the newly created SCP (Required_EC2_Tagging)</li><li>Choose Actions &gt; Attach policy</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*8GzWyt3wnkVVL8fol2SdQg.png" /><figcaption>Attach SCP to OU</figcaption></figure><ul><li>Follow the prompt and Select the target OU, and attach it.</li></ul><p><strong>STEP 10 — Test the SCP Without the Required Tag</strong></p><p><strong>Switch Into the New Member Account</strong></p><ul><li>Click your account name,</li><li>Select Switch Role</li><li>Enter the copied Account ID, Role Name and Account Name of the newly created account.</li><li>Click on Switch Role</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*mjd3y5d4Ufs9_9GxdSZOhA.png" /><figcaption>Switch Into Newly create AWS account by ´Switch Role´ Method</figcaption></figure><p><strong>Test</strong></p><ul><li>Enter the member account.</li><li>Start the EC2 instance creation process(Without adding the tag)</li><li>Attempt to launch the instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*VCpETrwpuoQXWKxqAv_p3A.png" /><figcaption>Test1: Launch EC2 Instance without adding additional Tag</figcaption></figure><ul><li>Observe the result/error</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*c2E-Ycy7SbSGP9HbQenurA.png" /><figcaption>EC2 Launch attempt fails due to missing additional tag details</figcaption></figure><p>Expected result the instance creation attempt fails because the SCP blocks the request due to missing tag information</p><p><strong>STEP 16 — Test the SCP With the Required Tag</strong></p><ul><li>Start creating an EC2 instance.</li><li>Choose “<strong>Add Additional Tags”</strong>.</li><li>Click Add New Tag.</li><li>Enter Key: <strong>CostCenter.</strong></li><li>Enter Value: <strong>111</strong>.</li><li>Ensure the tag is applied to the required <strong>Instance</strong> and <strong>EBS Volume</strong> resources.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*cvOlYCmnxvulK7XAHjLfFQ.png" /><figcaption>Test 2: Lauching EC2 Instance with additional Tag information</figcaption></figure><ul><li>Next Select all necessary parameters to launch an instance</li><li>Proceed with the launch.</li><li>Observe the result</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*pKgIdT-hrh-9pdcfEkg1mw.png" /><figcaption>EC2 Instance Launch attempt successful (with additional tag details)</figcaption></figure><p><strong>Expected result</strong>: the instance launches successfully, confirming that the tagging control is functioning as intended.</p><p><strong>The Practical Result: The First test</strong> demonstrated the G<strong>overnance Control</strong>; m<strong>issing required tag </strong>will lead to<strong> EC2 launch denied, </strong>While<strong> the second test </strong>demonstrated the <strong>Complaint Scenario</strong>;<strong> included required tag, </strong>thus<strong> SCP condition satisfied.</strong></p><h3><strong>Key Lessons Learned</strong></h3><p>One of my biggest takeaways is that <strong>AWS Organization</strong> is not simply about creating multiple accounts. It provides a foundation for managing a growing AWS environment in a more structured way. It can help organizations with;</p><ul><li>Centralized account management</li><li>Environment separation</li><li>Organizational Unit</li><li>Governance and policy enforcement</li><li>Account Level Boundaries</li><li>More Structured access management</li><li>Consistent security and compliance control</li></ul><p>And <strong>Service Control Policies </strong>add another layer of governance by defining guardrails for what accounts in the organization(OUs) can do.</p><p><strong>#AWSOrganizations #AWSAccount #AWSSCP #EC2 #CloudComputing #DevOps #AWSCloud #DevOpsJourney</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d37bbc4ef402" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project Documentation: Launching Redundant AWS EC2 Instances Across Two Availability Zones]]></title>
            <link>https://medium.com/@carolemunkeng/project-documentation-launching-redundant-aws-ec2-instances-across-two-availability-zones-da0edf99280a?source=rss-143103f1b3f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/da0edf99280a</guid>
            <dc:creator><![CDATA[Carole Munkeng]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 00:29:40 GMT</pubDate>
            <atom:updated>2025-09-21T00:29:40.949Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Project Documentation: Launching Redundant EC2 Instances with Apache Across Two Availability Zones</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3mKJOuPSlXuRs3o5YmAYA.png" /><figcaption>AWS Console&gt; Search EC2</figcaption></figure><p><strong>🎯 Project Objective</strong></p><p>The goal of this project was to <strong>create and launch Amazon EC2 instances running Apache Web Server on Amazon Linux, deployed across two Availability Zones (AZs)</strong> for redundancy and fault tolerance.</p><p>By spreading resources across multiple AZs, we ensure higher availability of the application. If one AZ becomes unavailable, the workload in the other remains accessible.</p><p><strong>🛠️ Prerequisites Setup</strong></p><p>Before deploying instances, I set up the essential networking components:</p><ul><li><strong>VPC (Virtual Private Cloud):</strong> To logically isolate resources.</li><li><strong>Subnets:</strong> Two (public and private subnets) in each Availability Zone (AZ1 and AZ2).</li><li><strong>Internet Gateway (IGW):</strong> To enable communication between EC2 instances and the internet.</li><li><strong>Route Tables:</strong> Configured to route internet-bound traffic via the IGW.</li></ul><p><strong>🚀 Deployment Steps</strong></p><p><strong>Step 1: Launch the First Instance in AZ 1</strong></p><ol><li>Navigate to the <strong>EC2 dashboard</strong> → Click <strong>Launch Instance</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*TYfAmH_KKPLtKBwXlM6h-A.png" /><figcaption>AWS EC2 Console</figcaption></figure><p>2. Name your instance</p><p>3. Select <strong>Amazon Linux 2 AMI (Free Tier Eligible)</strong>.</p><p>4. Choose <strong>t2.micro</strong> /<strong> t3.micro</strong> (Free Tier).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*1g5FQfjsXuy1AtzyBNw1VA.png" /><figcaption>Launching an EC2 Instance Form</figcaption></figure><p>5. Configure <strong>Key Pair</strong> (click create&gt;add keypair name&gt;click create).</p><p>6.Configure networking, click edit and:</p><ul><li>Select the created <strong>VPC</strong>.</li><li>Place the instance in Public <strong>Subnet (AZ1)</strong></li><li>Enable Auto-assign public IP</li></ul><p>7. Configure <strong>Security Group (</strong>make use of the add security rule button):</p><ul><li>Allow <strong>SSH (22)</strong> for secure access.</li><li>Allow <strong>HTTP (80)</strong> from anywhere.</li><li>Allow <strong>HTTPS (443)</strong> from anywhere.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*P4AU45hM9RTfExZcNPmnhg.png" /><figcaption>EC2 Instance Configuration</figcaption></figure><p>8. Add <strong>User Data</strong> to auto-install Apache: here’s a sampler user data</p><p>#!/bin/bash</p><p># Update system</p><p>Sudo su</p><p>yum update -y</p><p># Install Apache (httpd)</p><p>yum install -y httpd</p><p># Enable Apache to start on boot</p><p>systemctl enable httpd</p><p># Start Apache service</p><p>systemctl start httpd</p><p># Create a sample web page</p><p>echo “&lt;h1&gt;Hello from Apache on EC2&lt;/h1&gt;” &gt; /var/www/html/index.html</p><p>9. Launch instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*45ryJuIjXSRBJdxTifbjZA.png" /><figcaption>User Data&gt; Launch Instance</figcaption></figure><p>10. Click on the created instance and copy the <strong>Public IP (IPv4 address)</strong> and paste into a browser to test→ Website loads successfully. ✅</p><p><strong>Step 2: Launch the Second Instance in AZ 2</strong></p><ol><li>Go to <strong>Launch Instance</strong> again.</li><li>Select the <strong>same Amazon Linux AMI</strong> and <strong>t2.micro </strong>or <strong>t3.micro</strong>.</li><li>Choose the <strong>same VPC</strong>, but pick Public <strong>Subnet in AZ2</strong>.</li><li>Reuse the <strong>same Key Pair</strong> and <strong>Security Group</strong> from Step 1.</li><li>Add similar <strong>User Data</strong> script (with a slight difference to identify AZ2):</li><li>Test by copying the <strong>Public IP (IPv4 address)</strong> into a browser → Website loads successfully. ✅</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*uT8-YKhvtvfZSz3hD1evyQ.png" /><figcaption>Running Instances</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*M4Je8bEgjYmC5hbLnr16rQ.png" /><figcaption>Server Tested on Brower</figcaption></figure><p><strong>Visualizing the work done: EC2 Instance Launched in 2 AZs</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*oKiboCdyboHLU3q95ccFFw.png" /><figcaption>Visualizing Deployment ofEC2 Instances in 2 AZs</figcaption></figure><p><strong>⚡ Discovery: Faster Way to Replicate Instances</strong></p><p>Initially while testing the instance for AZ2, the site didn’t load even after several attempts, so i decided to troubleshoot. It eventually worked after multiple refreshing. But the interesting thing is, during troubleshooting, I discovered a <strong>much easier method to replicate instances across AZs</strong> using <strong>Amazon Q guidance</strong>:</p><ol><li>In the <strong>EC2 Dashboard</strong>, select the running instance (AZ1).</li><li>Click <strong>Actions → Image and templates → Launch more like this</strong>.</li><li>In the <strong>launch wizard</strong>, keep all settings the same, except:</li></ol><ul><li>Modify <strong>Subnet field</strong> → Select subnet in <strong>AZ2</strong>.</li></ul><p>4. Launch the instance → Done!</p><p>This approach <strong>saves time</strong> and reduces repetitive setup work when deploying identical configurations across multiple AZs. That little discovery sparked dopamine ✨ because it simplified the entire replication process!</p><p><strong>🧩 Challenges Faced</strong></p><ul><li><strong>Crowded AWS Console:</strong> Navigating through numerous services was overwhelming at first.</li><li><strong>Instance Connectivity Issue:</strong> One instance initially failed to load despite correct setup — likely network activity delays.</li><li><strong>Learning Curve:</strong> Understanding relationships between <strong>VPC, Subnets, IGW, Route Tables</strong> required a lot of focus.</li></ul><p>👉 However, by <strong>focusing only on the service at hand (EC2 + Networking)</strong>, I was able to troubleshoot and succeed.</p><p><strong>🎓 Lessons Learned</strong></p><ul><li>Redundancy across AZs improves resilience but requires correct networking.</li><li>Security Groups and Key Pairs can be <strong>reused</strong> across multiple instances.</li><li>AWS offers <strong>faster replication tools</strong> (Images, Templates, Launch More Like This).</li><li>Troubleshooting often reveals <strong>better ways of doing things</strong>.</li><li>Load Balancers are essential for <strong>real-world high availability</strong>.</li></ul><p><strong>🧹 Cleanup</strong></p><p>After completing the project, I ensured proper cleanup to avoid unnecessary costs:</p><ul><li><strong>Terminated EC2 Instances</strong> in both AZs.</li><li><strong>Deleted Security Groups, Key Pairs, Subnets, and VPC</strong> (non-default ones).</li><li><strong>Detached &amp; deleted Internet Gateway</strong>.</li></ul><p>✅ <strong>Outcome:</strong> Successfully deployed EC2 instances in <strong>two Availability Zones</strong> running <strong>Apache Web Server</strong>, tested redundancy, ensured cleanup, and identified <strong>Load Balancing and Auto Scaling </strong>as the next improvement for a more robust architecture. This would elevate the setup from a <strong>basic redundancy demo</strong> to a <strong>highly available web application architecture</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0edf99280a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project Documentation: Building Cloud Storage and a Static Website with AWS S3]]></title>
            <link>https://medium.com/@carolemunkeng/project-documentation-building-cloud-storage-and-a-static-website-with-aws-s3-939cd8409e83?source=rss-143103f1b3f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/939cd8409e83</guid>
            <dc:creator><![CDATA[Carole Munkeng]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 21:54:25 GMT</pubDate>
            <atom:updated>2025-09-20T21:54:25.052Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>🎯 Project Goal</strong></p><p>The main objective of this project was to <strong>create a cloud storage for files</strong> and extend it into a <strong>static website hosted on AWS S3</strong>.</p><p><strong>🚀 What I Did</strong></p><ol><li>Created an <strong>S3 bucket</strong> to store files (in this case, photos).</li><li>Uploaded objects into the bucket and tested access through the S3 object URL.</li><li>Discovered that individual files could only be accessed via their unique URLs</li><li>Troubleshot the issue and found a solution:</li></ol><ul><li>Created an <strong>HTML file</strong> that referenced my uploaded objects (images).</li><li>Uploaded the HTML file into the bucket.</li><li>This HTML page acted as the “home page” for the static website, allowing smooth navigation.</li></ul><p>5. Learned that <strong>S3 bucket names must be globally unique</strong>. My first choice (my-project1-bucket) was rejected because it was already taken, so I had to use another name.</p><p>👉 This confirmed an important AWS fact: <strong>No two S3 buckets can share the same name across all AWS accounts worldwide.</strong></p><p><strong>The Architectural Diagram: Static Website on AWS S3 bucket accessible via the Endpoint URL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*zYuuIWDHOFm92CG7hlfeGQ.png" /><figcaption>Architecture of Static Website hosted on AWS S3 Bucket accessible to users via the Endpoint URL</figcaption></figure><p><strong>💡 Key Learning</strong></p><ul><li>S3 buckets aren’t just storage — they can also host static websites.</li><li>To make a static site work, you need an index.html file as the entry point.</li><li>Bucket naming rules are strict — bucket names must be unique globally.</li></ul><p><strong>🛠️ Step-by-Step Demo (Beginner-Friendly)</strong></p><p>Here is a simple Step-by- Step Demo replicate this project:</p><p><strong>1. Create an S3 Bucket</strong></p><ul><li>Log in to <strong>AWS Management Console</strong>.</li><li>Choose your AWS region</li><li>Navigate to <strong>S3</strong> → <strong>Create bucket</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*WyiI76uhTrBpuWOZjD2Q8g.png" /><figcaption>AWS S3 Console</figcaption></figure><ul><li>Enter a globally <strong>unique bucket name</strong> (e.g., my-project1-b).</li><li>Permit Public access</li><li>Leave other settings as default for now and click <strong>Create bucket</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*m-PJ1NiqrCLJrnoN-7vYpQ.png" /><figcaption>S3 bucket creation form (Bucket naming and other configurations)</figcaption></figure><p><strong>2. Upload Objects</strong></p><ul><li>Click on and open your newly created bucket.</li><li>Click <strong>Upload</strong> → Add your <strong>files</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*dpySlrU065BNJK6oFeTSCQ.png" /><figcaption>S3 Object Upload page</figcaption></figure><p><strong>3. Create Your HTML Page</strong></p><p>Since S3 needs an entry file, create a simple index.html. Here’s a sample (<em>This sample references the photos in the bucket making it possible for the photos to be viewed on your static website) </em>:</p><p>&lt;!DOCTYPE html&gt;</p><p>&lt;html&gt;</p><p>&lt;head&gt;</p><p>&lt;title&gt;My S3 Photo Gallery&lt;/title&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;</p><p>&lt;h1&gt;Welcome to My Photo Gallery&lt;/h1&gt;</p><p>&lt;img src=”photo1.jpg” alt=”Photo 1&quot;&gt;</p><p>&lt;img src=”photo2.jpg” alt=”Photo 2&quot;&gt;</p><p>&lt;img src=”photo3.jpg” alt=”Photo 3&quot;&gt;</p><p>&lt;/body&gt;</p><p>&lt;/html&gt;</p><ul><li>Replace photo1.jpg, photo2.jpg, etc. with the <strong>exact names</strong> of your uploaded objects.</li><li>Upload this index.html file into the bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*tMqvqNu9i2k5pR8iYbs7Yw.png" /><figcaption>Successful Uploaded files</figcaption></figure><p><strong>4. Set Bucket Policy for Public Access</strong></p><ul><li>Go to <strong>Permissions</strong> → <strong>Bucket Policy</strong>.</li><li>Click Generate Policy</li><li>In policy type, select S3 Bucket Policy</li><li>Allow Effect</li><li>In the Principal field put a star (*)</li><li>Sellect all actions</li><li>Click on all resource and then Add Statement</li><li>Click “Generate Policy”</li><li>Copy the generated policy</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*igL-X_TOiTbNTaE14nzFfA.png" /><figcaption>Copy generated Policy</figcaption></figure><ul><li>Navigate to Bucket policy tab and under Policy paste the copied generated policy</li><li>Edit Line 9 by replacing “ *” with “Your bucket ARN /*”</li><li>Save Changes</li></ul><p><strong>5. Enable Static Website Hosting</strong></p><ul><li>Go to the <strong>Properties</strong> tab of your bucket.</li><li>Scroll down to <strong>Static website hosting</strong> → Enable it.</li><li>Specify: <strong>Index document</strong> → index.html, <strong>Error document</strong> → error.html (optional)</li><li>Save changes</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*6tATFrSVwaRCH_NgJLsL-w.png" /><figcaption>Enable Static Website Hosting</figcaption></figure><p><strong>6. Test Your Website</strong></p><ul><li>Copy the <strong>Endpoint URL</strong> (<em>located just below the Static Website Hosting settings)</em>.</li><li>Paste it into your browser → Your website is live!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*zzkMIz1JTf8dVvkR-xWCRg.png" /><figcaption>Testing Static Website via the Endpoint URL</figcaption></figure><p><strong>🌟 Final Thoughts</strong></p><p>This project taught me that while S3 buckets are powerful for file storage, they also double as a great cost-effective way to host static websites. The troubleshooting process made the experience more rewarding — especially the discovery that an HTML entry file is essential for a website to load properly as well as referencing the objects you want displayed on the static website. A small but exciting step into cloud-based web hosting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=939cd8409e83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>