<?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 Christopher Junior Afeku on Medium]]></title>
        <description><![CDATA[Stories by Christopher Junior Afeku on Medium]]></description>
        <link>https://medium.com/@afekuchris?source=rss-ff4ebc299d93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JDBIqZA-4b5Vni1HaOmirQ.jpeg</url>
            <title>Stories by Christopher Junior Afeku on Medium</title>
            <link>https://medium.com/@afekuchris?source=rss-ff4ebc299d93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:58:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@afekuchris/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[You’re Migrating Wrong: Why your “On-Premise” Mindset is your Greatest Enemy When Migrating to the…]]></title>
            <link>https://afekuchris.medium.com/youre-migrating-wrong-why-your-on-premise-mindset-is-killing-your-aws-budget-0bfcf4c8ff37?source=rss-ff4ebc299d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bfcf4c8ff37</guid>
            <category><![CDATA[aws-cost-reduction]]></category>
            <category><![CDATA[aws-cost-optimization]]></category>
            <category><![CDATA[aws-cost-management]]></category>
            <dc:creator><![CDATA[Christopher Junior Afeku]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 23:49:54 GMT</pubDate>
            <atom:updated>2025-12-23T22:42:27.312Z</atom:updated>
            <content:encoded><![CDATA[<h3>You’re Migrating Wrong: Why your “On-Premise” Mindset is your Greatest Enemy When Migrating to the Cloud</h3><h3>Introduction:</h3><p>You did the hard part. You planned the migration, executed the lift-and-shift, and watched your critical applications spin up successfully in AWS. <strong>Congratulations</strong>!</p><p>But then the first few major cloud bills started rolling in, and the expected dramatic cost savings were… missing. In fact, for many companies, the initial cost is often <em>higher</em> than their on-premise operating budget. You’re left wondering: <strong>If the cloud is supposed to be cheaper, why are we still burning so much cash?</strong></p><blockquote>I’ve been there. Early last year, <a href="https://medium.com/u/49594adc3608">solomon martins</a> and I helped a company complete a major migration, and while the architecture was sound, the AWS spend was out of control. We dug into the data and found a single, destructive pattern that was silently inflating the bill by nearly 30<strong>%</strong>. By addressing this one issue, we were able to reduce our monthly AWS spend from <strong>$7,839.72 to $6,493.23, </strong>a consistent, realized saving of <strong>17.18% in just three months</strong>. You can see the results below</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmU-xJN58uNrEpMiKJNg3A.png" /></figure><h3>The On-Premise Mindset</h3><p>The problem isn’t the cloud. It’s the <strong>mindset</strong> we brought with us to the cloud.</p><blockquote>Your AWS cost isn’t entirely based on your new architecture; it’s a ghost of your old data center’s rigid hardware purchasing strategy.</blockquote><p>For years, IT professionals had to adhere to a rigid principle: <strong>Overprovisioning is safety.</strong></p><p>Buying physical servers meant purchasing capacity not only for today’s peak load, but also for unexpected spikes and <strong>3–5 years of anticipated growth</strong>. This large buffer meant paying upfront for extra idle resources as a form of capacity planning because ordering, racking, and installing new hardware took months. Thus said, provisioning idle resources was a necessary hedge against business risk and crippling downtime.</p><p>The fundamental mistake most teams make is taking this same capacity specification and mapping it one-to-one to AWS resources. They perform a <strong>“lift-and-shift”</strong> migration that should really be called <strong>“lift-and-shift-and-overpay.”</strong></p><p>In the data center, if a server ran out of resources, the business stopped. The cost of hours of downtime, lost sales, and reputation damage always dwarfs the one-time capital cost of buying a slightly beefier server. You optimized for <em>risk avoidance</em>.</p><p>But in the cloud, you pay for what you consume. AWS is elastic, and you can provision and de-provision capacity in minutes or seconds. With the on-premise mindset, you would have turned an on-premise <strong>insurance policy</strong> (excess idle capacity) into a recurring, high <strong>subscription fee</strong> that provides no value in the cloud.</p><p>The biggest difference is often hidden in plain sight. On-premise servers often appear to be busy. They are fully provisioned, their lights are blinking, and they are consuming energy. But if you were to attach detailed monitoring to them, you would find most servers living in a state of chronic underutilization.</p><p>For example, when we analyzed the servers we migrated, we found a staggering truth:</p><ul><li>Most of our t3.2xlarge instances, provisioned to handle 8vCPUs, were averaging <strong>less than 15% CPU utilization</strong> during peak hours.</li><li>The original provisioning was based on old forecasts and a worst-case scenario that never actually materialized.</li></ul><p>In my experience, this chronic overprovisioning can contribute to a large percentage of your monthly AWS bill after a lift-and-shift migration. It’s like renting a five-bedroom home when you only use one room. You are paying for unused vCPUs and RAM 24/7, turning the very benefit of cloud elasticity (pay-as-you-go) against you.</p><p>On-premise, that extra capacity was a sunk capital cost (CapEx). In the cloud, that additional capacity is a never-ending, hourly operational expense (OpEx).</p><p>In this article, I will show you exactly how to break this costly habit. We will identify the specific areas where the “on-premise mindset” is killing your budget and implement a simple, data-driven approach to <strong>right-size</strong> your AWS infrastructure and finally unlock the promised agility and savings of the cloud.</p><blockquote>The good news is that unlike the data center, fixing overprovisioning in AWS is fast, easy, and requires zero capital expenditure. All you need is the right data and the discipline to let go of your old habits.</blockquote><p>Here is the five-step playbook we used to achieve that <strong>17.18% reduction</strong> in our monthly bill:</p><h3>Step 1: Use the AWS Cost Explorer</h3><p>The <strong>AWS Cost Explorer</strong> is your best tool for quickly isolating your most expensive resources that account for the bulk of your bill.</p><ul><li><strong>Filters:</strong> Navigate to Cost Explorer and play with the filter options to get some insight into your usage. Look specifically for the highest costs related to provisioned resources.</li><li><strong>Identify the Top Ten:</strong> Focus your attention on the <strong>top 10 most expensive resources</strong>. These resources, likely provisioned large during the migration, are your biggest opportunities for an immediate cost reduction. By optimizing just these 10, you can often achieve a significant percentage of your goal. You can then focus on the remaining items by repeating this process across your smaller, less costly resources to continue realizing incremental, sustainable savings.</li></ul><h3>Step 2: Discovery: Capture the Real Data</h3><p>You cannot right-size what you don’t measure. Forget the original hardware spec sheets; we need to know how the migrated application is <em>actually</em> performing in the provisioned cloud environment.</p><ul><li><strong>Focus on the Right Metrics:</strong> Most engineers instinctively check memory (RAM), but in the context of overprovisioning, other true cost killers are <strong>CPU Utilization and Storage</strong>. You are paying for those extra vCPUs and storage that are sitting idle 90% of the time.</li><li><strong>Use Monitoring Tools:</strong> Leverage monitoring tools like AWS CloudWatch to capture the utilization data for all your EC2 and Fargate instances. The key is to look at the specific metrics over a period of at least <strong>30 to 90 days</strong> (to account for monthly/quarterly workloads)</li><li><strong>The Overprovisioning Threshold:</strong> If your instance’s <strong>average CPU &amp; Memory utilization</strong> is consistently below 15–20% and your <strong>maximum spike</strong> is still below 45 - 50%, your instance is an immediate candidate for right-sizing.</li></ul><h3>Step 3: Right-Sizing</h3><p>Once you have the data, the decision is straightforward. The goal is not to find a cheaper instance, but to find the <strong>smallest, most cost-effective instance that can safely handle your maximum utilization peak.</strong></p><ul><li><strong>Move Down Instance Sizes:</strong> Use the data to map your current instance (e.g., t3.2xlarge) to a smaller size in the same or another family (e.g., t3.xlarge or t4g.xlarge). For example, if your peak CPU is 30% on an instance with 8 vCPUs, you can likely move to an instance with 4 vCPUs while still only hitting a 60–70% peak, which is a much more efficient use of resources.</li><li><strong>Embrace the Burstable Instances (T-Family):</strong> For migrated applications that have variable activity levels (like proxy servers), <strong>T-family instances (T3 or T4)</strong> are a game-changer. These are designed for workloads that need a small baseline of CPU and then <em>burst</em> to full power occasionally. They are often significantly cheaper and designed exactly to defeat the chronic underutilization problem.</li><li><strong>Always Test:</strong> Right-sizing involves a small amount of risk. Always test the new, smaller instance size in a development or staging environment with a realistic load before applying the change to production.</li></ul><h3>Step 4: Cleaning Up</h3><p>The “lift-and-shift” process often leaves behind costly, non-compute debris that contributes to the cost ghost. While not strictly overprovisioning, these “zombie resources” are easy wins for cost reduction.</p><ul><li><strong>Unattached EBS Volumes:</strong> When an EC2 instance is terminated (or even right-sized), its associated <strong>Elastic Block Store (EBS) volume</strong> is often left behind, still accruing storage charges. Find and delete any EBS volumes and obsolete snapshots unless you are certain they contain critical data.</li><li><strong>EBS Volume Downsizing Trap:</strong> While increasing an EBS volume is easy, reducing its size is a complex manual process that might require downtime. The trick is to start small and increase the size only when needed to avoid overpaying for unutilized storage.</li><li><strong>Idle Load Balancers:</strong> Did you shift your application but forget to delete the old <strong>Application Load Balancer (ALB)</strong> you created for the test? ALBs cost a substantial hourly fee regardless of traffic. Identify any load balancers with zero requests over a 30-day period and terminate them.</li><li><strong>Old Snapshots and AMIs:</strong> Audit your older <strong>Machine Images (AMIs)</strong> and <strong>database snapshots</strong>. While cheap individually, a massive inventory of backups can quickly add up. Define and enforce a clear retention policy.</li></ul><h3>Step 5: Embracing Cloud Elasticity</h3><p>Right-sizing your existing instances is the fastest way to get your initial savings. But to truly realize the promise of AWS, you must shift your focus from fixed provisioning to <strong>elasticity and automation</strong>. This is where you stop thinking like a server buyer and start thinking like a utility consumer.</p><h3>Killing the After-Hours Bill</h3><p>The most shocking example of the “on-premise mindset” is running test and development environments 24/7. In a data center, the cost of an idle server is minimal compared to the cost of powering it on and off constantly. In the cloud, the cost of running it when idle is substantial.</p><ul><li><strong>EC2 &amp; RDS Instance Scheduler:</strong> For resources like EC2 instances and Amazon RDS databases in your development, testing, and staging environments, implement the <strong>AWS Instance Scheduler</strong>. This tool can be configured to automatically power down these resources outside business hours (e.g., stopping at 5 PM and starting at 9 AM). Unless your team operates on a 24-hour development cycle, this simple automation can immediately eliminate approximately <strong>30–40%</strong> of the operational costs for those non-production resources (Given that some resources, such as ALBs, etc, cannot be stopped and started on demand).</li><li><strong>Fargate/ECS Scheduled Autoscaling:</strong> For containerized workloads running on Amazon ECS using Fargate, leverage the <strong>Scheduled Autoscaler</strong>. Instead of relying solely on reactive CPU/Memory utilization scaling, set up a scaling policy that dictates minimum capacity based on the time of day. For example, during peak working hours (9 AM–5 PM), the minimum count is set to 2. After hours, the minimum count is automatically scaled down to 0 or 1. This ensures you only pay for container tasks when developers are actually using the environment.</li></ul><h3>Conclusion</h3><p>The journey to true cloud cost optimization begins with a simple act of letting go of<strong> </strong>the fixed-capacity mindset of the data center. We proved that by leveraging data to inform our provisioning decisions, we achieved a tangible, immediate reduction in our monthly AWS spend.</p><p>If you have migrated from an on-premise environment, the “ghost” of your old data center is likely costing you thousands every month. Pull the CloudWatch resource utilization data and look for the hidden capacity you are paying for but never using.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bfcf4c8ff37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Naming: Unraveling the Importance of Naming Conventions in Code.]]></title>
            <link>https://afekuchris.medium.com/the-art-of-naming-unraveling-the-importance-of-naming-conventions-in-code-730c2087b704?source=rss-ff4ebc299d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/730c2087b704</guid>
            <dc:creator><![CDATA[Christopher Junior Afeku]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 08:17:15 GMT</pubDate>
            <atom:updated>2024-02-12T08:17:15.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>In the intricate world of coding, where lines of text transform into functional software, the significance of naming conventions cannot be overstated. A well-thought-out system of naming variables, functions, and other elements within a codebase is akin to a roadmap, guiding developers through the complex landscape of their creation. Let’s delve into the realm of naming conventions and explore their pivotal role in the daily lives of engineers.</p><p><strong>Clarity and Readability:</strong></p><p>One of the primary reasons for adopting a consistent naming convention is to enhance code clarity and readability. Imagine a library without labeled sections or a book without chapter titles — navigating through such content would be a daunting task. Similarly, in a codebase, clear and meaningful names serve as signposts, making it easier for developers to understand the purpose and functionality of each component. It can be challenging at first, but once you establish the format of the naming convention, your entire coding process becomes easier. Other members of your team can easily understand what you’ve done and can easily contribute to it.</p><p><strong>Maintainability and Collaboration:</strong></p><p>Coding projects often involve collaboration among multiple developers. Consistent naming conventions facilitate seamless collaboration by creating a shared natural language. When every contributor adheres to the same standards, the code becomes more maintainable, reducing the learning curve for new team members and minimizing the chances of errors caused by misinterpretation. It is important to note that naming conventions should be a standard and not an option. It should be a culture that flows within every team in an organization. When you make the lives of others easy, you improve your own life by a significant percentage.</p><p><strong>Debugging and Troubleshooting:</strong></p><p>When issues arise in a codebase, the ability to quickly identify and rectify the problem is paramount. Clear and descriptive names streamline the debugging process, allowing developers to pinpoint the source of an error swiftly. I cannot emphasize enough how important this is. I have been in situations where naming conventions have saved me a lot of time while debugging. An intelligible naming convention transforms debugging from a tedious hunt into a focused investigation, saving valuable time and resources.</p><p><strong>Consistency Across Projects:</strong></p><p>The best thing about naming conventions is the consistency they bring to a project’s codebase. In an environment where templating is highly adopted, the true magic is unleashed when coupled with effective naming conventions. Automated processes from scripts can work with templates to benefit from consistent and meaningful names, enhancing their ability to parse, analyze, or manipulate template elements without ambiguity.</p><p>Delving into DevOps and Cloud Engineering, I have had several experiences using structured naming conventions in several codebases. In the next paragraph, I explain how we adopted naming conventions as a department in my organization and the unlimited benefits it provided us.</p><blockquote>During the past two and half years, I have worked heavily with Ansible and Terraform to automate the setup, configuration, and deployments of critical infrastructure under the mentorship of Joseph Djomeda and <a href="https://medium.com/u/610c07607432">Yoofi Asamoah</a>. We lived by a basic but powerful principle; “To make our codebase a template for future projects, fostering code reuse and easing the onboarding process for new team members”. Joseph would always emphasize the need for clear and concise naming conventions. It was hard to understand why he was so passionate about it at first. Over time, I came to realize how easy it made our lives. We had a naming convention for almost everything. From naming variables &amp; objects, through naming configurations, to naming files and folders.</blockquote><blockquote>It made Templating and code reuse easier because we had established an art form, a structure, and a culture that future engineers will come to love and appreciate.</blockquote><p>Let’s delve into how you can also start creating descriptive and intelligible naming conventions.</p><h4>DEFINING THE STRUCTURE OF A NAMING CONVENTION</h4><p><strong>Where to begin?</strong></p><p>Creating a naming convention is a straightforward process and can be done in a few minutes. First, we need to identify the variables (both global and local) of the project we’re working on. For demonstration purposes, I am going to provide an example, using Terraform, an Infrastructure As Code tool that lets you build, change, and version cloud and on-prem resources safely and efficiently. The principle is the same and can be applied to any other programming language or codebase.</p><h4>Scenario: Creating a VPC [Virtual Private Cloud] resource in AWS.</h4><p><strong>So what is a VPC????</strong></p><p>A VPC is a fundamental component in cloud computing infrastructure, provided by Amazon Web Services (AWS). A VPC allows users to create a logically isolated section of the cloud where they can launch and configure compute resources, such as virtual machines, and define their network environment.</p><p><strong>Identifying the Global and Local Variables:</strong></p><p>Here are some examples:</p><p><strong>Global Variables:</strong></p><ul><li><strong>country</strong>: The country for which the application is being deployed if you have a multinational setup.</li><li><strong>product</strong>: The name of the product or application you are creating the resources for.</li><li><strong>environment</strong>: The environment from which the service will be running. This could be prod, UAT, Test, DR, or even QA.</li></ul><p><strong>Local Variables:</strong></p><ul><li><strong>resource_type</strong>: The type of resource you are creating.</li><li><strong>any_other_info</strong>: Additional useful information to identify the exact resource being created.</li></ul><h4>The Structure:</h4><p>For our use case, we will use the identified variables to generate the structure we want. A simple way is to concatenate the variables to form a single string value. See below;</p><p>Here is one way to represent the information we have in a format we can use.</p><p><strong>country</strong> ==&gt; <strong>product</strong> ==&gt; <strong>environment</strong> ==&gt; <strong>resource_type</strong> ==&gt; <strong>any_other_info</strong></p><p>Now, let’s provide some actual data to simulate what the finished format would look like.</p><p>We will use this information to fill in the variables.</p><ul><li><strong>country</strong> = gh</li><li><strong>product</strong> = jenkinsci</li><li><strong>environment</strong> = prod</li><li><strong>resource_type</strong> = vpc</li><li><strong>any_other_info</strong> [optional] = [we will leave this empty for this demo but you can add any additional information here]</li></ul><p>After filling in the details, here is an example of what my VPC resource name would be;</p><p><strong>VPC</strong>: <em>gh_jenkinsci_prod_vpc</em></p><p>It is important to know that you’ve been provided enough characters to make the name as descriptive as possible. Take advantage of that and give descriptive names. This would make it easier for others to easily identify the specific details of the object or resource you are naming. Here’s a pro tip. If you follow a good naming convention structure, you may not even need to comment on your code. You know why???? because your code is <strong><em>almost</em></strong> self-descriptive.</p><h4>Demonstration:</h4><p>Let&#39;s represent this in code, shall we? I am using the concept of custom modules in Terraform to achieve our goal. You can use any approach that suits your style. <em>Eg: You can use the concept of workspaces in Terraform to dynamically determine the value of the </em><strong><em>environment.</em></strong></p><p><strong>Requirements: </strong>[Find some assistance <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-authentication-user.html">here</a>.]</p><ul><li>Terraform</li><li>AWS CLI</li><li>IAM user with credentials</li></ul><p><strong>Here is my folder structure:</strong></p><pre>~/Documents/BattleField/iac/articles/article_naming_convention main ❯ tree . <br>.<br>├── main.tf<br>├── modules<br>│   └── networking<br>│       ├── variables.tf<br>│       └── vpc.tf<br>├── prod.tfvars<br>├── providers.tf<br>└── variables.tf<br><br>3 directories, 6 files</pre><h4>Here are the steps to follow:</h4><ul><li>Create Folder Structure and files respectively.</li><li>Copy and paste the following code into your <strong><em>providers.tf</em></strong><em> </em>file:</li></ul><pre><strong># Setting Required Providers<br></strong>terraform {<br>  required_providers {<br>    aws = {<br>      source  = &quot;hashicorp/aws&quot;<br>      version = &quot;~&gt; 5.0&quot;<br>    }<br>  }<br><br>}<br><br># Configuring the AWS Provider<br>provider &quot;aws&quot; {<br>  region  = &quot;eu-west-1&quot; # replace region with your prefered region code<br>  profile = &quot;myprofile&quot; # replace the profile name with the configured profile you to for your awscli. <br><br>  default_tags {<br>    tags = {<br>      Environment = var.global_var_tags_environment<br>      Project     = var.global_var_tags_product<br><br>    }<br>  }<br>}</pre><ul><li>Open the<strong><em> vpc.tf</em></strong> file under modules/networking and paste the following:</li></ul><pre>resource &quot;aws_vpc&quot; &quot;self&quot; {<br>  cidr_block = &quot;${var.vpc_var_cidr_block_prefix}.0.0/16&quot;<br><br>  tags = {<br>    Name = &quot;${var.global_var_tags_country}_${var.global_var_tags_product}_${var.global_var_tags_environment}_${var.vpc_var_resource_type}&quot;<br>  }<br>}</pre><ul><li>Now copy and paste the following code snippet into the <strong><em>variables.tf</em></strong> file at modules/networking</li></ul><pre>variable &quot;vpc_var_cidr_block_prefix&quot; {<br>  type        = string<br>  description = &quot;Local varieble to set CIDR block Prefix for VPC&quot;<br>}<br><br>variable &quot;global_var_tags_environment&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting environment type&quot;<br>}<br><br>variable &quot;global_var_tags_country&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting country code &quot;<br>}<br><br>variable &quot;global_var_tags_product&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting project name&quot;<br>}<br><br>variable &quot;vpc_var_resource_type&quot; {<br>  type        = string<br>  description = &quot;Local variable for setting VPC resource type&quot;<br>}</pre><ul><li>Let’s do the same for the <strong><em>main.tf</em></strong> file in the root directory. Copy and paste the code below into the file.</li></ul><pre>module &quot;networking&quot; {<br>  source                      = &quot;./modules/networking&quot;<br>  vpc_var_cidr_block_prefix   = var.networking_var_vpc_cidr_block<br>  vpc_var_resource_type       = var.networking_var_vpc_resource_type<br>  global_var_tags_environment = var.global_var_tags_environment<br>  global_var_tags_country     = var.global_var_tags_country<br>  global_var_tags_product     = var.global_var_tags_product<br>}</pre><ul><li>Next, copy the code below and paste it into the <strong><em>variables.tf </em></strong>file in the root directory.</li></ul><pre>variable &quot;global_var_tags_environment&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting environment type&quot;<br>}<br><br>variable &quot;global_var_tags_product&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting project or product name&quot;<br>}<br><br>variable &quot;global_var_tags_country&quot; {<br>  type        = string<br>  description = &quot;Global variable for setting country code &quot;<br>}<br><br>variable &quot;networking_var_vpc_cidr_block&quot; {<br>  type        = string<br>  description = &quot;CIDR block for VPC&quot;<br>}<br><br>variable &quot;networking_var_vpc_resource_type&quot; {<br>  type        = string<br>  description = &quot;Resource type for name tag&quot;<br>}</pre><ul><li>Finally, copy and paste the following code into the <strong><em>prod.tfvars</em></strong> file in the root directory.</li></ul><pre>global_var_tags_environment          = &quot;prod&quot;<br>global_var_tags_product              = &quot;jenkins&quot;<br>global_var_tags_country              = &quot;gh&quot;<br>networking_var_vpc_cidr_block        = &quot;172.28&quot;<br>networking_var_vpc_resource_type     = &quot;vpc&quot;</pre><p>Great Job so far, let&#39;s test this out.</p><p>Launch a terminal window in the current directory:</p><ul><li>Command + space on Mac, type terminal then hit the enter key.</li><li>Ctrl + Alt + T on Windows and most Linux platforms</li></ul><p>Run the following commands to initialize Terraform and generate a resource deployment plan.</p><pre>terraform init<br>terraform plan -var-file=prod.tfvars</pre><p>From the generated plan, you should see the names we defined in the <strong><em>tags</em></strong> section like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlFsfuunb6Pb1fCB6gY7Zg.png" /></figure><p>Now, deploy the configuration by running the following command in your terminal.</p><pre>terraform apply -var-file=prod.tfvars</pre><p>Enter “<em>Yes</em>” to approve and apply the configuration.</p><p>Once the resource is done creating, head over to your console. Navigate to VPC, and check it out. You should see something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKfnfEBkvRFx2MWFr_PfDQ.png" /></figure><p>Beautiful, isn’t it? From this, it is clear how using a meaningful and descriptive naming convention can make both your life and the lives of other engineers easy. Other engineers can see this and easily understand the kind of resource it is and its purpose without needing any formal documentation or consultation.</p><p>PS: I have added more resources to the codebase to aid your practice. You’ll find everything in the repository on <a href="https://github.com/BlackOps-Prime/article_naming_convention.git">GitHub</a>.</p><h4>Conclusion:</h4><p>To conclude this piece, a standardized approach to naming conventions ensures consistency across different codebases. This not only makes it easier for developers to transition between projects but also promotes a sense of order, clarity, and professionalism in the coding community at large. As engineers, our code is our legacy, and the art of naming is a powerful tool in shaping that legacy for the better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=730c2087b704" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>