<?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 Prerna Golani on Medium]]></title>
        <description><![CDATA[Stories by Prerna Golani on Medium]]></description>
        <link>https://medium.com/@prernagolani21?source=rss-1d924f3a97fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rC7OM64mIGIzdh2TrQmCMw.jpeg</url>
            <title>Stories by Prerna Golani on Medium</title>
            <link>https://medium.com/@prernagolani21?source=rss-1d924f3a97fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:08:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prernagolani21/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[Good Engineers Solve Problems. Great Mentors Help Others Learn to Solve Them.]]></title>
            <link>https://levelup.gitconnected.com/good-engineers-solve-problems-great-mentors-help-others-learn-to-solve-them-0bf57625524b?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bf57625524b</guid>
            <category><![CDATA[mentoring]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[tech-leadership]]></category>
            <category><![CDATA[career-development]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 15:43:50 GMT</pubDate>
            <atom:updated>2026-10-05T15:43:50.010Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Years of mentoring taught me that real growth begins when engineers start trusting their own judgment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXL0OvvtJaPGGlWmnJJDGg.jpeg" /><figcaption>Image generated by AI</figcaption></figure><p>I never really decided, “I want to become a mentor.”</p><p>It started much more simply — by sharing what I knew.</p><p>One of the first knowledge-sharing sessions I gave was on <strong>Scala coding best practices</strong>. At the time, I saw it as exactly that: a technical session where I could share some of the things I had learned and hopefully make someone else’s work a little easier.</p><p>But something interesting happened afterwards.</p><p>Engineers started approaching me more often.</p><p>Sometimes it was a question about Scala. Sometimes it was a coding decision. Sometimes they just wanted to talk through an approach before implementing it.</p><p>And slowly, I realized that the most valuable outcome of those sessions wasn’t the content itself.</p><p>It was <strong>trust</strong>.</p><blockquote><strong><em>Before someone trusts your advice, they need to trust the person giving it.</em></strong></blockquote><p>People had become comfortable enough to say:</p><p>“I’m not sure about this.”</p><p>“Can I run an idea by you?”</p><p>“What would you do here?”</p><p>That trust became the foundation of almost every mentoring relationship I built later in my career.</p><p>Because mentoring doesn’t really work without it.</p><p>If someone is worried about looking inexperienced, they won’t tell you what they don’t understand. If they think every idea will be judged immediately, they’ll only bring you polished answers. And if they believe you’re there simply to tell them what to do, they may follow your decision — but they won’t necessarily learn how to make the next one themselves.</p><p>For me, mentoring started with sharing knowledge.</p><p>But over time, I learned that sharing knowledge was only the beginning.</p><h3>Understanding Before Doing</h3><p>One experience that stayed with me was mentoring an engineer who was learning cloud technologies.</p><p>It would have been easy to start with Terraform syntax, share an example configuration, and ask them to reproduce it.</p><p>But I wanted them to understand <strong>what they were building before learning how to automate it</strong>.</p><p>So we started with the underlying cloud concepts. I tried to explain them in simple, everyday language rather than immediately introducing more technical terminology.</p><p>Only once those concepts were clear did we move to Terraform.</p><p>From there, I could give them an actual task: <strong>write the Terraform scripts to provision the infrastructure themselves.</strong></p><p>I was still there when they needed help, but I didn’t want to write the solution for them.</p><p>That experience reinforced something I’ve carried into mentoring ever since:</p><p>Understanding gives people something much more valuable than the ability to complete one task.</p><p>It gives them a foundation they can use when the next task looks completely different.</p><p>That&#39;s where I started seeing the difference between teaching someone how to do something and helping them<strong> become confident enough to figure things out themselves.</strong></p><h3>A Seat at the Table</h3><p>Another thing I learned over time is that engineers grow faster when they understand <strong>why</strong> decisions are being made, not just what they have been asked to implement.</p><p>Whenever an architecture decision was being discussed, I tried to bring that context back to the engineers working on the system.</p><p>Why did we choose this approach?</p><p>What alternatives did we consider?</p><p>What trade-offs were we accepting?</p><p>And rather than making those conversations something that happened only between senior engineers, I encouraged others to be part of them.</p><p>Sometimes that meant forwarding an architecture meeting invite and saying, “Join if you’re interested.”</p><p>Sometimes it meant sharing an RFC and asking, “Can you review this? What other options do you see?”</p><p>I didn’t expect everyone to have the answer. That wasn’t the point.</p><p>The point was to give them visibility into <strong>how technical decisions are made</strong> — and gradually give them the confidence to challenge those decisions, suggest alternatives, and eventually make those decisions themselves.</p><blockquote><strong><em>Don’t just give people tasks. Give them context.</em></strong></blockquote><h3>From Context to Ownership</h3><p>Once someone understands the context, the next step is giving them space to form their own opinion.</p><p>Instead of always explaining what I thought we should do, I started asking more questions.</p><p>“What option would you choose?”</p><p>“What trade-offs do you see?”</p><p>“How would you approach this?”</p><p>“What would you change in this design?”</p><p>These weren’t questions with a hidden “correct” answer.</p><p>I wanted engineers to know that their thinking mattered.</p><p>Sometimes I agreed with their approach. Sometimes we debated it. And sometimes they came up with an option I hadn’t considered myself.</p><p>Those conversations are important because confidence doesn’t come only from learning more technology.</p><p>It also comes from seeing that your judgment is trusted.</p><p>Over time, I started thinking about mentoring differently.</p><p><strong>Mentoring is not only about transferring knowledge. It is about gradually transferring ownership.</strong></p><h3>What I Saw Change</h3><p>The outcomes weren’t always dramatic. Often, they showed up in small changes.</p><p>Someone who initially came with <em>“What should I do?”</em> started coming with <em>“Here are the options I considered.”</em></p><p>Someone who quietly listened in an architecture discussion started asking questions.</p><p>Someone who needed help understanding a technology eventually took responsibility for implementing it.</p><p>And someone who once looked for confirmation before every decision started becoming comfortable making decisions of their own.</p><p>For me, those moments became a much better measure of mentoring than how much knowledge I could share.</p><p>Because the goal was never to make people dependent on my experience.</p><p>It was to help them build their own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_5EiBiEXbMwTktGbjJ-WA.png" /><figcaption>Image generated by AI</figcaption></figure><p>I’m curious — <strong>what has your mentoring journey looked like?</strong></p><h3>More from me</h3><p>I write about software engineering, cloud, architecture, and the things I learn while experimenting with technology.</p><p>If you enjoyed this article, you might also like:</p><p><strong>I Tried FastAPI as a Java Engineer — Here’s What Surprised Me</strong></p><p>A Spring Boot developer’s perspective on Python’s modern API framework — what felt familiar, what felt different, and what genuinely surprised me.</p><p><a href="https://levelup.gitconnected.com/i-tried-fastapi-as-a-java-engineer-heres-what-surprised-me-27a930ad06df?utm_source=chatgpt.com">Read “I Tried FastAPI as a Java Engineer — Here’s What Surprised Me”</a></p><p>More articles coming soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bf57625524b" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/good-engineers-solve-problems-great-mentors-help-others-learn-to-solve-them-0bf57625524b">Good Engineers Solve Problems. Great Mentors Help Others Learn to Solve Them.</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Tried FastAPI as a Java Engineer — Here’s What Surprised Me]]></title>
            <link>https://levelup.gitconnected.com/i-tried-fastapi-as-a-java-engineer-heres-what-surprised-me-27a930ad06df?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/27a930ad06df</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[fastapi]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 14:35:54 GMT</pubDate>
            <atom:updated>2026-09-23T14:35:54.479Z</atom:updated>
            <content:encoded><![CDATA[<p>A Spring Boot developer’s take on Python’s modern API framework.</p><p>I’ve spent most of my backend career working with Java and Spring Boot, so trying FastAPI naturally made me compare the two.</p><p>What interested me was not whether FastAPI could build a REST API — of course it could. What stood out was how familiar backend concepts were expressed differently: type hints carrying more responsibility, lightweight request models, a very different approach to dependency injection, and an async model that looks deceptively simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4ugKI_cNFLcmmY4nOu58w.png" /><figcaption><em>Illustration created by author using AI</em></figcaption></figure><h3>Python Type Hints Do More Than I Expected</h3><p>Coming from Java, I’m used to types being central to how an application is designed. In Python, I initially thought of type hints as mostly a readability and tooling feature.</p><p>FastAPI changed that perception.</p><pre>from pydantic import BaseModel, EmailStr<br>class UserRequest(BaseModel):<br>    name: str<br>    email: EmailStr</pre><p>This simple model becomes much more than a data structure. FastAPI can use it for request parsing, validation, serialization, and API documentation.</p><p>That was one of the first things that genuinely surprised me. The type definition becomes a central part of the API contract, without requiring much additional configuration.</p><h3>Pydantic Felt Familiar, but Lighter</h3><p>Pydantic felt familiar because the idea is very close to how I think about DTOs in Java: define the shape of the data, validate it, and use that model at the API boundary.</p><p>What felt different was how compact it was.</p><p>In Java, validation often sits alongside records or POJOs using annotations such as @NotBlank, @Email, or @Size. With Pydantic, the model and its validation rules feel more tightly connected.</p><pre>from pydantic import BaseModel, Field<br>class UserRequest(BaseModel):<br>    name: str = Field(min_length=2)<br>    age: int = Field(gt=0)</pre><h3>Dependency Injection Felt Very Different</h3><p>This was probably the biggest shift for me coming from Spring Boot.</p><p>In Spring, dependency injection is built around the application context, managed beans, and constructor injection. You usually define a service and let Spring create and wire it.</p><p>With FastAPI, dependencies can be declared directly where they are needed:</p><pre>from fastapi import Depends<br>def get_current_user():<br>    return {&quot;id&quot;: 1, &quot;name&quot;: &quot;Prerna&quot;}<br>@app.get(&quot;/profile&quot;)<br>def get_profile(user = Depends(get_current_user)):<br>    return user</pre><p>At first, Depends() looked almost too simple compared with Spring’s dependency injection model.</p><p>What I found interesting is that FastAPI uses the same mechanism not only for services, but also for authentication, database sessions, permissions, and other request-level concerns.</p><p>The idea of dependency injection was familiar. The way FastAPI expresses it was not.</p><h3>Async Looked Simpler Than It Really Is</h3><p>FastAPI makes asynchronous endpoints look almost effortless:</p><pre>@app.get(&quot;/users&quot;)<br>async def get_users():<br>    return await fetch_users()</pre><p>Coming from Java, where asynchronous code can involve CompletableFuture, executors, reactive libraries, or virtual threads, this syntax feels refreshingly simple.</p><p>But the simplicity can also be misleading.</p><p>Using async does not automatically make an API faster. It helps when the work is mostly waiting on I/O, such as database calls or external services. If the code is CPU-heavy or calls blocking libraries, the benefits can disappear quickly.</p><p><strong>The code looks simpler, but the engineering decisions around concurrency are still just as important.</strong></p><h3>FastAPI Removes Ceremony, Not Backend Fundamentals</h3><p>One thing I appreciated while exploring FastAPI is that less framework ceremony does not mean fewer engineering decisions.</p><p>You still need to think about API design, error handling, database access, retries, authentication, observability, scalability, and how different parts of the system interact.</p><p>FastAPI can make it quicker to express an endpoint, but it does not remove the need for good backend design.</p><p>That distinction mattered to me. The framework felt lightweight, but the engineering problems were exactly the same ones I was already used to solving in Java.</p><h3>Where Each One Fits Naturally</h3><p>After trying FastAPI, I started thinking less about which framework is better and more about where each one fits naturally.</p><p>FastAPI feels especially well suited for lightweight APIs, internal services, prototypes, AI/ML backends, and applications already living in the Python ecosystem. It is also attractive when you want to expose an API quickly without introducing much framework overhead.</p><p>Spring Boot feels very natural for larger JVM-based systems, complex business domains, long-lived enterprise applications, and teams that already have a strong Java ecosystem around them. Its conventions and mature ecosystem become particularly valuable as applications and teams grow.</p><p>Of course, these are not hard boundaries. You can build large systems with FastAPI and small services with Spring Boot. For me, the more useful question became: <strong>what ecosystem, team, and problem am I designing for?</strong></p><h3>Final Thoughts</h3><p>Trying FastAPI didn’t change how I think about backend engineering. It changed how I think about expressing it.</p><p>The same concerns remain: clean API contracts, validation, dependencies, concurrency, failures, and scalability. What changes is the amount of framework structure around those decisions.</p><p>For me, that was the most interesting part of exploring FastAPI as a Java engineer — familiar problems, a different way of solving them.</p><h3>More from me</h3><p>If you enjoyed this article, you might also like:</p><p><strong>DynamoDB on LocalStack: A 10-Minute Setup Guide</strong> — a practical setup using Terraform and LocalStack.</p><p><a href="https://medium.com/gitconnected/dynamodb-on-localstack-a-10-minute-setup-guide-c0b12f08d451">https://medium.com/gitconnected/dynamodb-on-localstack-a-10-minute-setup-guide-c0b12f08d451</a></p><p><strong>Exploring Java 27: Lazy Static Initialization</strong> — a look at one of Java’s newer language features from a backend engineer’s perspective.</p><p><a href="https://medium.com/gitconnected/java-27-lazy-constants-why-static-final-wasnt-enough-07b6471fdc8f">https://medium.com/gitconnected/java-27-lazy-constants-why-static-final-wasnt-enough-07b6471fdc8f</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27a930ad06df" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/i-tried-fastapi-as-a-java-engineer-heres-what-surprised-me-27a930ad06df">I Tried FastAPI as a Java Engineer — Here’s What Surprised Me</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DynamoDB on LocalStack: A 10-Minute Setup Guide]]></title>
            <link>https://levelup.gitconnected.com/dynamodb-on-localstack-a-10-minute-setup-guide-c0b12f08d451?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0b12f08d451</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[localstack]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 14:52:45 GMT</pubDate>
            <atom:updated>2026-09-22T16:02:18.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Run DynamoDB locally, explore its core features, and test without touching AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMHDmhYrj32uNiB60VhAiA.png" /><figcaption><em>Illustration created by author using AI</em></figcaption></figure><p>Want to try DynamoDB without creating resources in AWS? With LocalStack, you can run DynamoDB directly on your machine, create tables, insert data, and test commands locally. In this quick guide, we’ll get everything running in about 10 minutes.</p><h3>What You Need</h3><p>Before we start, make sure you have:</p><ul><li>Docker</li><li>AWS CLI</li><li>Terraform</li><li>A terminal</li></ul><p><strong>Step 1: Start LocalStack</strong></p><p>Create a docker-compose.yml file:</p><pre>services:<br>  localstack:<br>    image: localstack/localstack:4.4.0<br>    ports:<br>      - &quot;4566:4566&quot;<br>    environment:<br>      - SERVICES=dynamodb</pre><p>Start LocalStack:</p><pre>docker compose up -d</pre><p>This starts LocalStack with DynamoDB available locally at:</p><pre>http://localhost:4566</pre><p><strong>Step 2: configure Terraform to talk to LocalStack</strong>.</p><p>Create a provider.tf file:</p><pre>terraform {<br>  required_providers {<br>    aws = {<br>      source = &quot;hashicorp/aws&quot;<br>      version = &quot;6.12.0&quot;<br>    }<br>  }<br>}</pre><pre>provider &quot;aws&quot; {<br>  region     = &quot;us-east-1&quot;<br>  access_key = &quot;test&quot;<br>  secret_key = &quot;test&quot;</pre><pre>  skip_requesting_account_id  = <em>true<br></em>  skip_credentials_validation = true<br>  skip_metadata_api_check     = true</pre><pre>  endpoints {<br>    dynamodb = &quot;http://localhost:4566&quot;<br>  }<br>}</pre><p>The important part is the endpoints block. Instead of connecting to AWS, Terraform sends DynamoDB requests to LocalStack running on port 4566.</p><p>The test credentials are just dummy values for our local environment — no real AWS credentials are required.</p><p><strong>Step 3: create the DynamoDB table with Terraform</strong>.</p><p>Create a dynamodb.tf file:</p><pre>resource &quot;aws_dynamodb_table&quot; &quot;users&quot; {<br>  name         = &quot;users&quot;<br>  billing_mode = &quot;PAY_PER_REQUEST&quot;<br>  hash_key     = &quot;user_id&quot;</pre><pre>  attribute {<br>    name = &quot;user_id&quot;<br>    type = &quot;S&quot;<br>  }<br>}</pre><p>Here:</p><ul><li>name is the DynamoDB table name.</li><li>hash_key defines the <strong>partition key</strong>.</li><li>S means the partition key is a <strong>String</strong>.</li><li>PAY_PER_REQUEST uses DynamoDB&#39;s on-demand capacity mode, so we don&#39;t need to configure read/write capacity.</li></ul><p>Now initialize and apply Terraform:</p><pre>terraform init<br>terraform apply</pre><p>Type yes when Terraform asks for confirmation.aws_dynamodb_table supports PAY_PER_REQUEST, and only attributes used as table/index keys need to be declared in the Terraform resource.</p><p>After you run this successfully, we’ll do just</p><p><strong>Step 4: verify that the table actually exists in LocalStack</strong>.</p><p>Now let’s confirm that Terraform created the table in LocalStack.</p><p>Run:</p><pre>aws dynamodb list-tables \<br>  --endpoint-url http://localhost:4566 \<br>  --region us-east-1</pre><p>You should see:</p><pre>{<br>  &quot;TableNames&quot;: [<br>    &quot;users&quot;<br>  ]<br>}</pre><p>This confirms that DynamoDB is running locally and our Terraform configuration created the table successfully.</p><p><strong>Step 5: Add an Item</strong></p><p>Now add a sample user to the table:</p><pre>aws dynamodb put-item \<br>  --table-name users \<br>  --item &#39;{&quot;user_id&quot;:{&quot;S&quot;:&quot;101&quot;},&quot;name&quot;:{&quot;S&quot;:&quot;test&quot;}}&#39; \<br>  --endpoint-url http://localhost:4566 \<br>  --region us-east-1</pre><p>This inserts one item with:</p><ul><li>user_id as the partition key</li><li>name as a regular attribute</li></ul><p>DynamoDB is schema-flexible, so apart from the key attributes, you don’t need to define every field in advance.</p><p><strong>Step 6: Read the Item</strong></p><p>Now fetch the item using its partition key:</p><pre>aws dynamodb get-item \<br>  --table-name users \<br>  --key &#39;{&quot;user_id&quot;:{&quot;S&quot;:&quot;101&quot;}}&#39; \<br>  --endpoint-url http://localhost:4566 \<br>  --region us-east-1</pre><p>You should get a response similar to:</p><pre>{<br>  &quot;Item&quot;: {<br>    &quot;user_id&quot;: {<br>      &quot;S&quot;: &quot;101&quot;<br>    },<br>    &quot;name&quot;: {<br>      &quot;S&quot;: &quot;test&quot;<br>    }<br>  }<br>}</pre><p>That’s it — DynamoDB is running locally, the table was created with Terraform, and we successfully wrote and read data through LocalStack.</p><h3>What We Just Learned</h3><p>In just a few steps, we:</p><ul><li>Ran DynamoDB locally using LocalStack</li><li>Used Terraform to create the table</li><li>Defined a partition key</li><li>Inserted data with the AWS CLI</li><li>Read the item back from DynamoDB</li><li>Worked entirely locally without creating resources in AWS</li></ul><p>A few DynamoDB concepts worth remembering:</p><ul><li><strong>Partition key</strong> decides where an item is stored and uniquely identifies it in our simple table.</li><li><strong>Schema flexibility</strong> means non-key attributes do not need to be defined upfront.</li><li><strong>On-demand capacity</strong> lets DynamoDB handle capacity automatically.</li><li><strong>LocalStack</strong> gives us a convenient environment for local development and testing.</li></ul><h3>Source Code</h3><p>You can find the complete setup used in this guide on GitHub:</p><p><strong>GitHub:</strong> <a href="https://github.com/pgolani28/dynamodb-localstack-terraform">dynamodb-localstack-terraform</a></p><p>The repository includes the LocalStack Docker setup, Terraform configuration, DynamoDB table definition, and README with the commands used in this article.</p><h3>Related Reading</h3><p>If you’re also exploring AWS services locally, check out my guide on <strong>setting up Amazon S3 with LocalStack and Terraform</strong>.<br><a href="https://medium.com/gitconnected/how-to-test-s3-with-terraform-using-localstack-585d2366fa13">https://medium.com/gitconnected/how-to-test-s3-with-terraform-using-localstack-585d2366fa13</a></p><p><a href="https://medium.com/gitconnected/how-to-enable-versioning-in-s3-using-terraform-and-localstack-b387a4ab453b">https://medium.com/gitconnected/how-to-enable-versioning-in-s3-using-terraform-and-localstack-b387a4ab453b</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0b12f08d451" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/dynamodb-on-localstack-a-10-minute-setup-guide-c0b12f08d451">DynamoDB on LocalStack: A 10-Minute Setup Guide</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java 27 Lazy Constants: Why static final Wasn’t Enough]]></title>
            <link>https://levelup.gitconnected.com/java-27-lazy-constants-why-static-final-wasnt-enough-07b6471fdc8f?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/07b6471fdc8f</guid>
            <category><![CDATA[jvm]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[java27]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 14:51:01 GMT</pubDate>
            <atom:updated>2026-09-22T16:01:28.463Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical look at lazy initialization, thread safety, and what Java’s new LazyConstant API changes for backend developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PGIEPCFK0oCs4Fva7Q1yA.png" /><figcaption><em>Illustration created by author using AI</em></figcaption></figure><p>Java developers have used static final for years when they need a value that should be created once and reused. But static final has one important limitation: the value is usually created as soon as the class is initialized, even if the application never actually needs it. Java 27 continues the preview of LazyConstant, an API designed to solve exactly this problem — initialize a value only when it is first needed, initialize it safely once, and then reuse the same value.</p><h3>The problem with static final</h3><p>Let’s start with a simple example:</p><pre>public class PaymentService {<br>private static final FraudRules RULES = loadFraudRules();<br>    private static FraudRules loadFraudRules() {<br>        System.out.println(&quot;Loading fraud rules...&quot;);<br>        return new FraudRules();<br>    }<br>}</pre><p>At first glance, this looks perfectly fine. We want one instance of FraudRules, so we create it as a static final field.</p><p>The problem is that loadFraudRules() runs when PaymentService is initialized.</p><p>That means we create the object whether we need it or not.</p><p>Imagine that loading fraud rules involves reading a large configuration file, creating some expensive objects, or preparing resources — but only a small percentage of requests actually use fraud checking.</p><p>We have now paid the initialization cost even if that code path is never executed.</p><p>This is called <strong>eager initialization</strong>.</p><p>What we really want is:<br><strong>Create the object once, but only when it is actually needed.</strong></p><p><strong>Why not just initialize it in the constructor?</strong></p><p>A natural question is: why not move the initialization into the constructor?</p><pre>public class PaymentService {<br>private final FraudRules rules;<br>    public PaymentService() {<br>        this.rules = loadFraudRules();<br>    }<br>}</pre><p>This changes <em>when</em> the object is created, but it is still eager initialization.</p><p>Now FraudRules is created every time a PaymentService instance is constructed, even if that particular instance never needs fraud rules.</p><p>So the difference is:</p><ul><li>Constructor initialization → create the value when the object is created</li><li>Lazy initialization → create the value only when the value is first accessed</li></ul><p>The real goal is not just to delay initialization.</p><p>It is to avoid initialization entirely unless the value is actually needed.</p><p><strong>How do we do lazy initialization today?</strong></p><p>Java already has patterns for lazy initialization.</p><p>One common approach is the <strong>Initialization-on-demand holder idiom</strong>:</p><pre>public class PaymentService {<br>private static class FraudRulesHolder {<br>        private static final FraudRules RULES = loadFraudRules();<br>    }<br>    public static FraudRules getFraudRules() {<br>        return FraudRulesHolder.RULES;<br>    }<br>    private static FraudRules loadFraudRules() {<br>        System.out.println(&quot;Loading fraud rules...&quot;);<br>        return new FraudRules();<br>    }<br>}</pre><p>Here, FraudRules is not created when PaymentService is initialized.</p><p>It is created only when this method is called for the first time:</p><pre>PaymentService.getFraudRules();</pre><p>After that, the same instance is reused.</p><p>So technically, Java could already do lazy initialization.</p><p>The question is:</p><p><strong>If this already works, why introduce </strong><strong>LazyConstant?<br></strong>Enter LazyConstant</p><p>Java 27 makes lazy initialization explicit:</p><pre>private static final LazyConstant&lt;FraudRules&gt; RULES =<br>        LazyConstant.of(PaymentService::loadFraudRules);</pre><p>The value is created only on the first call:</p><pre>FraudRules rules = RULES.get();</pre><p>After that, the same value is reused.</p><p>So instead of using a holder class or writing synchronization logic yourself, Java gives us a dedicated API for the job.</p><h3>Thread safety comes built in</h3><p>Lazy initialization becomes tricky when multiple threads access the value at the same time.</p><p>With LazyConstant, Java handles this for us:</p><pre>RULES.get();</pre><p>Even if several threads call get() concurrently, the value is initialized once and then shared safely.</p><p>That means no custom synchronized blocks or double-checked locking.</p><h3>JVM optimization</h3><p>Once a LazyConstant has been initialized, its value cannot change.</p><p>Because of that, the JVM may optimize later reads using <strong>constant folding</strong>, similar to how it can optimize final fields.</p><p>So we get both:</p><ul><li>lazy initialization</li><li>constant-like optimization after initialization</li></ul><h3>When should you use it?</h3><p>LazyConstant makes sense when:</p><ul><li>creating the value is expensive</li><li>the value may never be needed</li><li>it should be initialized only once</li><li>multiple threads may access it</li></ul><p>Good examples include configuration objects, lookup tables, parsers, metadata, or expensive helper objects.</p><p>Since LazyConstant is still a preview feature in Java 27, it is better to experiment with it before adopting it widely in production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07b6471fdc8f" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/java-27-lazy-constants-why-static-final-wasnt-enough-07b6471fdc8f">Java 27 Lazy Constants: Why static final Wasn’t Enough</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Enable Versioning In S3 Using Terraform and LocalStack]]></title>
            <link>https://levelup.gitconnected.com/how-to-enable-versioning-in-s3-using-terraform-and-localstack-b387a4ab453b?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b387a4ab453b</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[localstack]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Tue, 12 Apr 2022 12:37:04 GMT</pubDate>
            <atom:updated>2022-04-12T14:48:38.304Z</atom:updated>
            <content:encoded><![CDATA[<p>Protect S3 bucket from accidental delete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idE-t4GTE1Coo6b1dmU4Kw.png" /><figcaption>Image by author</figcaption></figure><p>AWS S3 allows the versioning of objects to recover from accidental deletes and application failure. Versioning is disabled by default in any S3 bucket.</p><p>We can recover from any accidental delete, which is done through a special marker that S3 enables, which we will discuss later in the article.</p><p>Let&#39;s first follow some initial steps to start working on versioning.<br>Please refer to my previous article on creating an S3 bucket using terraform and local stack, I will be using the same example to create a bucket with versioning</p><p><a href="https://levelup.gitconnected.com/how-to-test-s3-with-terraform-using-localstack-585d2366fa13">How To Test S3 with Terraform using LocalStack</a></p><h4>Step#1 Enable versioning in S3</h4><p>versioning_configuration adds the versioning information with status property as enabled</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bf053f5e17108afe9007945d8158377/href">https://medium.com/media/2bf053f5e17108afe9007945d8158377/href</a></iframe><h4>Step #2 Run the terraform plan</h4><pre>terraform init<br>terraform plan</pre><pre>Output :</pre><pre><strong># aws_iam_role.invocation_role</strong> will be created</pre><pre>+ resource &quot;aws_iam_role&quot; &quot;invocation_role&quot; {</pre><pre>+ arn                   = (known after apply)</pre><pre>+ assume_role_policy    = jsonencode(</pre><pre>{</pre><pre>+ Statement = {</pre><pre>+ Action   = &quot;s3:ListBucket&quot;</pre><pre>+ Effect   = &quot;Allow&quot;</pre><pre>+ Resource = &quot;arn:aws:s3:::test-bucket&quot;</pre><pre>}</pre><pre>+ Version   = &quot;2012-10-17&quot;</pre><pre>}</pre><pre>)</pre><pre>+ create_date           = (known after apply)</pre><pre>+ force_detach_policies = false</pre><pre>+ id                    = (known after apply)</pre><pre>+ managed_policy_arns   = (known after apply)</pre><pre>+ max_session_duration  = 3600</pre><pre>+ name                  = &quot;s3_api_gateway_auth_invocation&quot;</pre><pre>+ name_prefix           = (known after apply)</pre><pre>+ path                  = &quot;/&quot;</pre><pre>+ tags_all              = (known after apply)</pre><pre>+ unique_id             = (known after apply)</pre><pre>+ inline_policy {</pre><pre>+ name   = (known after apply)</pre><pre>+ policy = (known after apply)</pre><pre>}</pre><pre>}</pre><pre><strong># aws_s3_bucket.test-bucket</strong> will be created</pre><pre>+ resource &quot;aws_s3_bucket&quot; &quot;test-bucket&quot; {</pre><pre>+ acceleration_status                  = (known after apply)</pre><pre>+ acl                                  = (known after apply)</pre><pre>+ arn                                  = (known after apply)</pre><pre>+ bucket                               = &quot;my-bucket&quot;</pre><pre>+ bucket_domain_name                   = (known after apply)</pre><pre>+ bucket_regional_domain_name          = (known after apply)</pre><pre>+ cors_rule                            = (known after apply)</pre><pre>+ force_destroy                        = false</pre><pre>+ grant                                = (known after apply)</pre><pre>+ hosted_zone_id                       = (known after apply)</pre><pre>+ id                                   = (known after apply)</pre><pre>+ lifecycle_rule                       = (known after apply)</pre><pre>+ logging                              = (known after apply)</pre><pre>+ object_lock_enabled                  = (known after apply)</pre><pre>+ policy                               = (known after apply)</pre><pre>+ region                               = (known after apply)</pre><pre>+ replication_configuration            = (known after apply)</pre><pre>+ request_payer                        = (known after apply)</pre><pre>+ server_side_encryption_configuration = (known after apply)</pre><pre>+ tags_all                             = (known after apply)</pre><pre>+ versioning                           = (known after apply)</pre><pre>+ website                              = (known after apply)</pre><pre>+ website_domain                       = (known after apply)</pre><pre>+ website_endpoint                     = (known after apply)</pre><pre>+ object_lock_configuration {</pre><pre>+ object_lock_enabled = (known after apply)</pre><pre>+ rule                = (known after apply)</pre><pre>}</pre><pre>}</pre><pre><strong># aws_s3_bucket_versioning.versioning_example</strong> will be created</pre><pre>+ resource &quot;aws_s3_bucket_versioning&quot; &quot;versioning_example&quot; {</pre><pre>+ bucket = (known after apply)</pre><pre>+ id     = (known after apply)</pre><pre>+ versioning_configuration {</pre><pre>+ mfa_delete = (known after apply)</pre><pre>+ status     = &quot;Enabled&quot;</pre><pre>}</pre><pre>}</pre><pre><strong>Plan:</strong> 3 to add, 0 to change, 0 to destroy.</pre><pre><strong>Do you want to perform these actions?</strong></pre><pre>Terraform will perform the actions described above.</pre><pre>Only &#39;yes&#39; will be accepted to approve.</pre><pre><strong>Enter a value:</strong> yes</pre><pre><strong>aws_iam_role.invocation_role: Creating...</strong></pre><pre><strong>aws_s3_bucket.test-bucket: Creating...</strong></pre><pre><strong>aws_s3_bucket.test-bucket: Creation complete after 1s [id=my-bucket]</strong></pre><pre><strong>aws_s3_bucket_versioning.versioning_example: Creating...</strong></pre><pre><strong>aws_iam_role.invocation_role: Creation complete after 1s [id=s3_api_gateway_auth_invocation]</strong></pre><pre><strong>aws_s3_bucket_versioning.versioning_example: Creation complete after 1s [id=my-bucket]</strong></pre><pre><strong>Apply complete! Resources: 3 added, 0 changed, 0 destroyed.</strong></pre><p>We now see we have <strong><em>three changes</em></strong> because we are creating the bucket from the start if I just add the versioning section there will be only <strong><em>one resource</em></strong> that will be added.</p><pre>terraform apply</pre><h4><strong><em>Step #3 Verify the bucket and add a file</em></strong></h4><p>Let&#39;s add a file first with a simple text</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de6feea594e7e02d20a05046f422fc42/href">https://medium.com/media/de6feea594e7e02d20a05046f422fc42/href</a></iframe><p>Let&#39;s create an alias and add it to our .zshrc</p><pre>alias awss3api=&quot;aws --endpoint-url=http://localhost:4566 s3api&quot;<br>alias awss3=&quot;aws --endpoint-url=http://localhost:4566 s3&quot;<br></pre><p>Source the .zshrc and verify the bucket contents</p><pre>source ~/.zshrc</pre><pre>awss3 cp test.txt s3://my-bucket</pre><pre>awss3 ls s3://my-bucket</pre><pre><strong>Output:</strong><br>2022-04-10 15:17:39         65 test.txt</pre><p>Let&#39;s try to see if the version of the file is created</p><pre>awss3api list-object-versions --bucket my-bucket --key test.txt</pre><pre><strong>Output:</strong><br>{</pre><pre>&quot;IsTruncated&quot;: false,</pre><pre>&quot;KeyMarker&quot;: &quot;test.txt&quot;,</pre><pre>&quot;Versions&quot;: [</pre><pre>{</pre><pre>&quot;ETag&quot;: &quot;\&quot;44100b5ed6d5128ca6b705a29c489c29\&quot;&quot;,</pre><pre>&quot;Size&quot;: 22,</pre><pre>&quot;StorageClass&quot;: &quot;STANDARD&quot;,</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;f43ce36e-baaa-46ea-b44f-437b6e61758b&quot;,</pre><pre>&quot;IsLatest&quot;: true,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T10:03:04+00:00&quot;,</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>}</pre><pre>}</pre><pre>],</pre><pre>&quot;Name&quot;: &quot;my-bucket&quot;,</pre><pre>&quot;Prefix&quot;: &quot;&quot;,</pre><pre>&quot;Delimiter&quot;: &quot;&quot;,</pre><pre>&quot;MaxKeys&quot;: 1000</pre><pre>}</pre><p>The version <strong>f43ce36e-baaa-46ea-b44f-437b6e61758b </strong>is created and isLatest is set to true with key test.txt</p><h4><strong><em>Step #4 Add the same file with the modification</em></strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6033dd4e79025612e333b8953876b6da/href">https://medium.com/media/6033dd4e79025612e333b8953876b6da/href</a></iframe><pre>awss3 cp test.txt s3://my-bucket</pre><pre>awss3api list-object-versions --bucket my-bucket --key test.txt</pre><pre>Output :<br>{</pre><pre>&quot;IsTruncated&quot;: false,</pre><pre>&quot;KeyMarker&quot;: &quot;test.txt&quot;,</pre><pre>&quot;Versions&quot;: [</pre><pre>{</pre><pre>&quot;ETag&quot;: &quot;\&quot;6a26de2e122c69d94ff12e03b9b7498f\&quot;&quot;,</pre><pre>&quot;Size&quot;: 65,</pre><pre>&quot;StorageClass&quot;: &quot;STANDARD&quot;,</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;7548306c-dfd3-4d3a-a994-28e790c479a6&quot;,</pre><pre>&quot;IsLatest&quot;: true,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T10:08:28+00:00&quot;,</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>}</pre><pre>},</pre><pre>{</pre><pre>&quot;ETag&quot;: &quot;\&quot;44100b5ed6d5128ca6b705a29c489c29\&quot;&quot;,</pre><pre>&quot;Size&quot;: 22,</pre><pre>&quot;StorageClass&quot;: &quot;STANDARD&quot;,</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;f43ce36e-baaa-46ea-b44f-437b6e61758b&quot;,</pre><pre>&quot;IsLatest&quot;: false,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T10:03:04+00:00&quot;,</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>}</pre><pre>}</pre><pre>],</pre><pre>&quot;Name&quot;: &quot;my-bucket&quot;,</pre><pre>&quot;Prefix&quot;: &quot;&quot;,</pre><pre>&quot;Delimiter&quot;: &quot;&quot;,</pre><pre>&quot;MaxKeys&quot;: 1000</pre><pre>}</pre><p>The version <strong>7548306c-dfd3–4d3a-a994–28e790c479a6 </strong>is created and isLatest is set to true with key test.txt while <strong>f43ce36e-baaa-46ea-b44f-437b6e61758b </strong>is set to false.</p><p><strong><em>Versions are maintained and can be considered as a stack LIFO.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-6hhJv0sawsB0j_l3gEkfA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@holly_buildalifeyoulove?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Holly Stratton</a> on <a href="https://unsplash.com/s/photos/stack?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>We can get the content of the latest version using get-object</p><pre>awss3api get-object --bucket my-bucket --key test.txt --range bytes=0-10000 /dev/stdout</pre><pre><strong>Ouptput:</strong><br>Hello I am s3 bucket.</pre><pre>The versioning is enabled for this bucket.</pre><pre>{</pre><pre>&quot;AcceptRanges&quot;: &quot;bytes&quot;,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T13:17:39+00:00&quot;,</pre><pre>&quot;ContentLength&quot;: 65,</pre><pre>&quot;ETag&quot;: &quot;\&quot;6a26de2e122c69d94ff12e03b9b7498f\&quot;&quot;,</pre><pre>&quot;VersionId&quot;: &quot;8832c9db-0cd3-42bb-b88c-082c7e4ebb49&quot;,</pre><pre>&quot;ContentLanguage&quot;: &quot;en-US&quot;,</pre><pre>&quot;ContentRange&quot;: &quot;bytes 0-64/65&quot;,</pre><pre>&quot;ContentType&quot;: &quot;text/plain&quot;,</pre><pre>&quot;Metadata&quot;: {}</pre><pre>}</pre><h4><strong>Step#5 Perform a delete on the bucket</strong></h4><pre>awss3api delete-object --bucket my-bucket --key test.txt</pre><pre><strong>Output:</strong></pre><pre>awss3 delete-object --bucket my-bucket --key test.txt</pre><pre>{</pre><pre>&quot;VersionId&quot;: &quot;a1098f60-95e4-4007-8c15-b66e5dcf53f9&quot;</pre><pre>}</pre><p><strong>Running the below command will return nothing</strong></p><pre>awss3 ls s3://my-bucket</pre><p>Let&#39;s try to find out reason</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dfh_Ib78U68mkc1mseIsKg.jpeg" /><figcaption>Image by Author</figcaption></figure><h3>Delete Markers</h3><ul><li>It is added when the object inside the bucket is deleted</li><li>It comes with a key and version Id</li><li>It is the latest version of the object i.e they sit at the top of the stack of versions.</li></ul><p>We see a new version is created in DeleteMarkerssection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lyj1UDWEii6j-auuOOFPIA.jpeg" /><figcaption>Image by Author</figcaption></figure><pre>awss3api list-object-versions — bucket my-bucket — key test.txt</pre><pre>Ouput:<br>{</pre><pre>&quot;IsTruncated&quot;: false,</pre><pre>&quot;KeyMarker&quot;: &quot;test.txt&quot;,</pre><pre>&quot;Versions&quot;: [</pre><pre>{</pre><pre>&quot;ETag&quot;: &quot;\&quot;6a26de2e122c69d94ff12e03b9b7498f\&quot;&quot;,</pre><pre>&quot;Size&quot;: 65,</pre><pre>&quot;StorageClass&quot;: &quot;STANDARD&quot;,</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;7548306c-dfd3-4d3a-a994-28e790c479a6&quot;,</pre><pre>&quot;IsLatest&quot;: false,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T10:08:28+00:00&quot;,</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>}</pre><pre>},</pre><pre>{</pre><pre>&quot;ETag&quot;: &quot;\&quot;44100b5ed6d5128ca6b705a29c489c29\&quot;&quot;,</pre><pre>&quot;Size&quot;: 22,</pre><pre>&quot;StorageClass&quot;: &quot;STANDARD&quot;,</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;f43ce36e-baaa-46ea-b44f-437b6e61758b&quot;,</pre><pre>&quot;IsLatest&quot;: false,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T10:03:04+00:00&quot;,</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>}</pre><pre>}</pre><pre>],</pre><pre>&quot;<strong>DeleteMarkers</strong>&quot;: [</pre><pre>{</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>},</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;a1098f60-95e4-4007-8c15-b66e5dcf53f9&quot;,</pre><pre>&quot;IsLatest&quot;: true,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T13:09:56+00:00&quot;</pre><pre>}</pre><pre>],</pre><pre>&quot;Name&quot;: &quot;my-bucket&quot;,</pre><pre>&quot;Prefix&quot;: &quot;&quot;,</pre><pre>&quot;Delimiter&quot;: &quot;&quot;,</pre><pre>&quot;MaxKeys&quot;: 1000</pre><pre>}</pre><h4>Step#6 Perform second delete</h4><p>Performing another delete will add another delete marker, let&#39;s try to run a command</p><pre>awss3api delete-object --bucket my-bucket --key test.txt</pre><pre><strong>Output:</strong><br>{</pre><pre>&quot;VersionId&quot;: &quot;60a67a37-15cd-453c-a0cb-a3d387b64d24&quot;</pre><pre>}</pre><p><strong>We see we have two delete markers now</strong></p><pre>awss3api list-object-versions --bucket my-bucket --key test.txt</pre><pre><strong>Output:</strong><br>............</pre><pre>&quot;DeleteMarkers&quot;: [</pre><pre>{</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>},</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;60a67a37-15cd-453c-a0cb-a3d387b64d24&quot;,</pre><pre>&quot;IsLatest&quot;: true,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T13:10:29+00:00&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;Owner&quot;: {</pre><pre>&quot;DisplayName&quot;: &quot;webfile&quot;,</pre><pre>&quot;ID&quot;: &quot;75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a&quot;</pre><pre>},</pre><pre>&quot;Key&quot;: &quot;test.txt&quot;,</pre><pre>&quot;VersionId&quot;: &quot;a1098f60-95e4-4007-8c15-b66e5dcf53f9&quot;,</pre><pre>&quot;IsLatest&quot;: false,</pre><pre>&quot;LastModified&quot;: &quot;2022-04-10T13:09:56+00:00&quot;</pre><pre>}</pre><pre>],</pre><pre>&quot;Name&quot;: &quot;my-bucket&quot;,</pre><pre>&quot;Prefix&quot;: &quot;&quot;,</pre><pre>&quot;Delimiter&quot;: &quot;&quot;,</pre><pre>&quot;MaxKeys&quot;: 1000</pre><pre>}</pre><h4>Step #7 Remove Delete Markers</h4><p><strong><em>Let&#39;s begin with the first one.</em></strong></p><pre>awss3api delete-object --bucket my-bucket --key test.txt --version-id 60a67a37-15cd-453c-a0cb-a3d387b64d24</pre><pre>Output:<br>{</pre><pre>&quot;DeleteMarker&quot;: true</pre><pre>}<br></pre><p><strong><em>Second one</em></strong></p><pre>awss3api delete-object --bucket my-bucket --key test.txt --version-id a1098f60-95e4-4007-8c15-b66e5dcf53f9</pre><pre>Output:<br>{</pre><pre>&quot;DeleteMarker&quot;: true</pre><pre>}</pre><p>List the object in the bucket again, you should be able to see the file test.txt and list versions using list-object-versions</p><pre>awss3 ls s3://my-bucket<br>awss3api list-object-versions --bucket my-bucket --key test.txt</pre><p>Please refer to my <a href="https://github.com/pgolani28/terraform_localstack_demo">Github repo</a> for the code and also do refer to my blog to create your own public repository</p><p><a href="https://faun.pub/how-to-create-your-first-git-hub-repo-mac-f3df63398c94">How To Create Your First Git Hub Repo — Mac</a></p><h3><strong>Conclusion</strong></h3><p>Thanks for reading the article was useful and helpful in understanding the S3 versioning feature.</p><p><strong><em>Before you go</em></strong>… <em>If you liked my story and want to support my writing, </em><a href="https://medium.com/@prernagolani21/membership"><strong><em>become a Medium member right here</em></strong></a><em>. For $5 a month, you’ll have access to unlimited stories and I’ll earn a bit of commission at no extra cost to you. Thank you for reading my story and supporting my love of writing.</em></p><p>Please <strong>follow me </strong>/ <a href="https://medium.com/subscribe/@prernagolani21"><strong>subscribe to emails</strong></a> so you’ll know as soon as my next post is out.</p><h3><strong>References</strong></h3><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html</a><br><a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket">https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b387a4ab453b" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-enable-versioning-in-s3-using-terraform-and-localstack-b387a4ab453b">How To Enable Versioning In S3 Using Terraform and LocalStack</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Test S3 with Terraform using LocalStack]]></title>
            <link>https://levelup.gitconnected.com/how-to-test-s3-with-terraform-using-localstack-585d2366fa13?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/585d2366fa13</guid>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[localstack]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 01:09:06 GMT</pubDate>
            <atom:updated>2022-04-10T11:06:04.276Z</atom:updated>
            <content:encoded><![CDATA[<p>Testing AWS services made simple by LocalStack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6PepL9eJLxYjh3x4--rcA.jpeg" /><figcaption>Image by Author</figcaption></figure><p>The major challenge newbie faces while learning AWS is how to maintain the infrastructure and test it locally. Below is a similar conversation that is happening between the two developers who are trying to understand and help each other in learning AWS services.</p><h3>What is Terraform?</h3><p>Terraform is an infrastructure as a code tool that helps us to create and manage resources on cloud services.</p><ul><li>Tracks the infrastructure by maintaining the state file which is the source of truth for your environment.</li><li>Automates the changes, it helps to detect dependencies of resources and helps users not to worry about the step by step instruction to create a resource.</li></ul><h4>States in Terraform</h4><ul><li><strong><em>Init</em></strong><br>The below command helps to initialize the current working directory to use terraform.</li></ul><pre>terraform init </pre><ul><li><strong><em>Plan</em></strong><br>It creates an execution plan based on the configuration file to create, update or destroy a resource.</li></ul><pre>terraform plan</pre><ul><li><strong><em>Apply</em></strong><br>It applies the changes in the terraform plan based on the resource dependencies graph it creates in an execution plan.</li></ul><pre>terraform apply</pre><h3>How to create an S3 bucket using Terraform?</h3><p>AWS Simple Storage Service also known as S3 is a cloud-based service that provides that helps to store, backup archive and retrieve data at any time. It is S3 provides 99.999999999% durability for objects and is an object storage service. We pay for only what we use with S3.</p><h3>Prerequisites</h3><ul><li>Install <a href="https://learn.hashicorp.com/tutorials/terraform/install-cli">Terraform</a></li><li>Install<a href="https://docs.docker.com/desktop/mac/install/"> Docker Desktop</a></li><li>Install <a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">AWS CLI</a></li></ul><h4>Step#1 Write the configuration file</h4><p>The below file creates an S3 bucket name my-bucket and has the IAM role to List Buckets .IAM role helps to define the operations that are allowed on the S3 bucket. This is a very simple configuration, we can add many features like versioning and ACL. <br> S3 Standard as storage type will be the default storage. Refer <a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket">link</a> for further information on enabling features using terraform.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/541fd8cf63dc9930a3fb381c7705f045/href">https://medium.com/media/541fd8cf63dc9930a3fb381c7705f045/href</a></iframe><h4>Step#2 Configure localstack</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FAty_vSVJ46YwwuQvzZBvw.jpeg" /><figcaption>Image by author</figcaption></figure><p>Localstack is a cloud service emulator that helps to run services of AWS like S3, Dynamodb, Kinesis and many more! <br>Terraform configuration interacts with Localstack with provider with mock access_key and secret_key along with endpoints to port 4566</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9b5fd05d2d5f03165535a33eda98e62/href">https://medium.com/media/b9b5fd05d2d5f03165535a33eda98e62/href</a></iframe><p><strong><em>Option#1 </em></strong>Execute Localstack using docker run .</p><pre>$ docker run --rm -it -p 4566:4566 -p 4571:4571 localstack/localstack</pre><p><strong><em>Option#2</em></strong> Execute Localstack using docker-compose.yaml .</p><pre>docker-compose up -d</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5d4a3035ce94384606564da6df3d2db/href">https://medium.com/media/a5d4a3035ce94384606564da6df3d2db/href</a></iframe><p><strong><em>Output:</em></strong></p><pre>Creating localstack_main ... done</pre><pre>Attaching to localstack_main</pre><pre>localstack_main | Waiting for all LocalStack services to be ready</pre><pre>localstack_main | 2022-04-04 21:05:58,042 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.</pre><pre>localstack_main | 2022-04-04 21:05:58,047 INFO supervisord started with pid 14</pre><pre>localstack_main | 2022-04-04 21:05:59,057 INFO spawned: &#39;infra&#39; with pid 20</pre><pre>localstack_main | 2022-04-04 21:06:00,060 INFO success: infra entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)</pre><pre>localstack_main |</pre><pre>localstack_main | LocalStack version: 0.14.2</pre><pre>localstack_main | LocalStack Docker container id: 960f3dbe8b0d</pre><pre>localstack_main | LocalStack build date: 2022-04-02</pre><pre>localstack_main | LocalStack build git hash: 8f73e14e</pre><pre>localstack_main |</pre><pre>localstack_main | Starting edge router (https port 4566)...</pre><pre>localstack_main | Ready.</pre><pre>localstack_main | [2022-04-04 21:06:00 +0000] [20] [INFO] Running on https://0.0.0.0:4566 (CTRL + C to quit)</pre><pre>localstack_main | 2022-04-04T21:06:00.774:INFO:hypercorn.error: Running on https://0.0.0.0:4566 (CTRL + C to quit)</pre><h4>Step#3 Execute Terraform plan</h4><p>We need our three steps now <br><strong><em>#1 Initialise terraform</em></strong></p><pre>terraform init</pre><p><strong><em>#2 Execute Plan</em></strong></p><p>As we can see in the below output that two resources s3 bucket and iam role .</p><pre>terraform plan</pre><pre>Output:</pre><pre>Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:</pre><pre>+ create</pre><pre>Terraform will perform the following actions:</pre><pre><strong># aws_iam_role.invocation_role</strong> will be created</pre><pre>+ resource &quot;aws_iam_role&quot; &quot;invocation_role&quot; {</pre><pre>+ arn                   = (known after apply)</pre><pre>+ assume_role_policy    = jsonencode(</pre><pre>{</pre><pre>+ Statement = {</pre><pre>+ Action   = &quot;s3:ListBucket&quot;</pre><pre>+ Effect   = &quot;Allow&quot;</pre><pre>+ Resource = &quot;arn:aws:s3:::test-bucket&quot;</pre><pre>}</pre><pre>+ Version   = &quot;2012-10-17&quot;</pre><pre>}</pre><pre>)</pre><pre>+ create_date           = (known after apply)</pre><pre>+ force_detach_policies = false</pre><pre>+ id                    = (known after apply)</pre><pre>+ managed_policy_arns   = (known after apply)</pre><pre>+ max_session_duration  = 3600</pre><pre>+ name                  = &quot;api_gateway_auth_invocation&quot;</pre><pre>+ name_prefix           = (known after apply)</pre><pre>+ path                  = &quot;/&quot;</pre><pre>+ tags_all              = (known after apply)</pre><pre>+ unique_id             = (known after apply)</pre><pre>+ inline_policy {</pre><pre>+ name   = (known after apply)</pre><pre>+ policy = (known after apply)</pre><pre>}</pre><pre>}</pre><pre><strong># aws_s3_bucket.test-bucket</strong> will be created</pre><pre>+ resource &quot;aws_s3_bucket&quot; &quot;test-bucket&quot; {</pre><pre>+ acceleration_status                  = (known after apply)</pre><pre>+ acl                                  = (known after apply)</pre><pre>+ arn                                  = (known after apply)</pre><pre>+ bucket                               = &quot;my-bucket&quot;</pre><pre>+ bucket_domain_name                   = (known after apply)</pre><pre>+ bucket_regional_domain_name          = (known after apply)</pre><pre>+ cors_rule                            = (known after apply)</pre><pre>+ force_destroy                        = false</pre><pre>+ grant                                = (known after apply)</pre><pre>+ hosted_zone_id                       = (known after apply)</pre><pre>+ id                                   = (known after apply)</pre><pre>+ lifecycle_rule                       = (known after apply)</pre><pre>+ logging                              = (known after apply)</pre><pre>+ object_lock_enabled                  = (known after apply)</pre><pre>+ policy                               = (known after apply)</pre><pre>+ region                               = (known after apply)</pre><pre>+ replication_configuration            = (known after apply)</pre><pre>+ request_payer                        = (known after apply)</pre><pre>+ server_side_encryption_configuration = (known after apply)</pre><pre>+ tags_all                             = (known after apply)</pre><pre>+ versioning                           = (known after apply)</pre><pre>+ website                              = (known after apply)</pre><pre>+ website_domain                       = (known after apply)</pre><pre>+ website_endpoint                     = (known after apply)</pre><pre>+ object_lock_configuration {</pre><pre>+ object_lock_enabled = (known after apply)</pre><pre>+ rule                = (known after apply)</pre><pre>}</pre><pre>}</pre><pre><strong>Plan:</strong> 2 to add, 0 to change, 0 to destroy.</pre><pre>╷</pre><pre>│ <strong>Warning: Argument is deprecated</strong></pre><pre>│</pre><pre>│   with provider[&quot;registry.terraform.io/hashicorp/aws&quot;],</pre><pre>│   on main.tf line 5, in provider &quot;aws&quot;:</pre><pre>│    5:   s3_force_path_style         = true</pre><pre>│</pre><pre>│ Use s3_use_path_style instead.</pre><pre>│</pre><pre>│ (and one more similar warning elsewhere)</pre><p><strong><em>#3 Apply the changes</em></strong></p><pre>terraform apply</pre><pre>Output:</pre><pre>.....<br><strong>Do you want to perform these actions?</strong></pre><pre>Terraform will perform the actions described above.</pre><pre>Only &#39;yes&#39; will be accepted to approve.</pre><pre><strong>Enter a value:</strong> yes</pre><pre><strong>aws_iam_role.invocation_role: Creating...</strong></pre><pre><strong>aws_s3_bucket.test-bucket: Creating...</strong></pre><pre><strong>aws_s3_bucket.test-bucket: Creation complete after 0s [id=my-bucket]</strong></pre><pre><strong>aws_iam_role.invocation_role: Creation complete after 1s [id=api_gateway_auth_invocation]</strong></pre><h4>Step#4 S3 bucket operations</h4><p>Note: I am using aws-cli for the running commands, Localstack can be installed using <a href="https://github.com/localstack/localstack">pip</a> as well.</p><p><strong><em>#1 List bucket</em></strong></p><pre>aws --endpoint-url=http://localhost:4566 s3 ls<br>Output</pre><pre>2022-04-04 23:31:10 my-bucket</pre><p><strong><em>#2 Create a simple text file as below</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de6feea594e7e02d20a05046f422fc42/href">https://medium.com/media/de6feea594e7e02d20a05046f422fc42/href</a></iframe><p><strong><em>#3 Execute the </em></strong><strong><em>s3 cp command</em></strong></p><pre>aws --endpoint-url=http://localhost:4566 s3 cp test.txt s3://my-bucket</pre><pre><strong>Output</strong><br>upload: ./test.txt to s3://my-bucket/test.txt</pre><p><strong><em>#4 Check the contents of the bucket</em></strong></p><pre>aws --endpoint-url=http://localhost:4566 s3 ls s3://my-bucket</pre><pre>2022-04-05 00:13:34         22 test.txt</pre><p>Please refer to my <a href="https://github.com/pgolani28/terraform_localstack_demo">Github repo</a> for the code and also do refer to my blog to create your own public repository</p><p><a href="https://faun.pub/how-to-create-your-first-git-hub-repo-mac-f3df63398c94">How To Create Your First Git Hub Repo — Mac</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SV0rorin_ft9SnWTFYxd5A.jpeg" /><figcaption>Image by Author</figcaption></figure><h3><strong><em>Conclusion</em></strong></h3><p>Hope the article was useful and helps in getting started with AWS services.</p><p><strong><em>Before you go</em></strong>… <em>If you liked my story and want to support my writing, </em><a href="https://medium.com/@prernagolani21/membership"><em>become a Medium member right here</em></a><em>. For $5 a month, you’ll have access to unlimited stories and I’ll earn a bit of commission at no extra cost to you. Thank you for reading my story and supporting my love of writing.</em></p><p>Please follow me / <a href="https://medium.com/subscribe/@prernagolani21">subscribe to emails</a> so you’ll know as soon as my next post is out.</p><h3>References</h3><p><a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket">https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket</a><br><a href="https://docs.localstack.cloud/integrations/terraform/">https://docs.localstack.cloud/integrations/terraform/</a><br><a href="https://github.com/localstack/localstack">https://github.com/localstack/localstack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=585d2366fa13" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-test-s3-with-terraform-using-localstack-585d2366fa13">How To Test S3 with Terraform using LocalStack</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Create Your First Git Hub Repo — Mac]]></title>
            <link>https://faun.pub/how-to-create-your-first-git-hub-repo-mac-f3df63398c94?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3df63398c94</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[steps]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 15:17:30 GMT</pubDate>
            <atom:updated>2022-04-04T15:17:30.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>How To Create Your First Git Hub Repo -Mac</h3><p>5 easy steps to your Git Hub repository</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMKX0U0wkehkwKjYy4ZXZg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@praveentcom?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Praveen Thirumurugan</a> on <a href="https://unsplash.com/s/photos/github?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>GitHub is a platform for hosting repository and version control through Git. It helps users to contribute to open source, bug tracking, continuous integrations and making a wiki for projects.</p><p>Let&#39;s begin with the process 😃.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzUXOuOJPmpMHyZ6-DOd_A.jpeg" /><figcaption>Image by Author</figcaption></figure><p>Let&#39;s begin our journey to learn Github</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0MBqpiB_5fFWDG6DrB31yA.jpeg" /><figcaption>Image by author</figcaption></figure><h3>Step#1 SignUp/SignIn for Git Hub</h3><p><a href="https://github.com/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F&amp;source=header-home">SignUp</a> to Github if you are a new user. Make sure to remember your username if you are a new user. If you have already an existing user <a href="https://github.com/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F&amp;source=header-home">Sign In</a> to the page.</p><p>To check the username, click on the profile image on the right side after logging in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tXC8U3iraa4OeWfSjgJ-A.png" /><figcaption>Image by author</figcaption></figure><h3>Step#2 Prerequisites</h3><p><strong><em>Install git</em></strong></p><pre>brew install git</pre><p><strong><em>Install open ssh</em></strong></p><pre>brew install openssh</pre><h3>Step#3 Generate SSH Keys</h3><p><strong><em>Generate SSH keys</em></strong></p><pre>ssh-keygen -t rsa -b 4096 -C “you-email@domain.com”</pre><p>Keys are generated inside .ssh folder as below:</p><pre>-rw-------  1 prernagolani  staff  3389 Apr  2 10:47 id_rsa</pre><pre>-rw-r--r--  1 prernagolani  staff   750 Apr  2 10:47 id_rsa.pub</pre><p>Once the keys are generated, make sure to add the keys to your account.</p><p><em>Go to Settings -&gt; SSH and GPG keys</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0doT3MEPPNOBUxtCVYdWFQ.png" /><figcaption>Image by author</figcaption></figure><p>Go to Settings -&gt; SSH keys -&gt; New SSH key.<br>Copy the public key from the file id_rsa.pub .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx1NVW7nB3W_eZLNITRV7Q.png" /></figure><p><strong><em>Verify the remote connection to Git Hub.</em></strong></p><pre>ssh -T git@github.com</pre><pre>Output:</pre><pre>The authenticity of host &#39;github.com (140.82.121.3)&#39; can&#39;t be established.</pre><pre>ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.</pre><pre>This key is not known by any other names</pre><pre>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes</pre><pre>Warning: Permanently added &#39;github.com&#39; (ED25519) to the list of known hosts.</pre><pre>Hi pgolani28! You&#39;ve successfully authenticated, but GitHub does not provide shell access.</pre><h3>Step#4 Create Repository</h3><p>Go to the Home page</p><ul><li>Click on New</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nkqLp6vTnoW8BKQqaIYXA.png" /></figure><ul><li>Add Repo name, and description and check the option Add ReadMe file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Phltsxu8iI35q7ujQDsQdA.png" /><figcaption>Image by author</figcaption></figure><ul><li>Click on Create Repository.</li></ul><p><strong><em>Wow !!! Now you have your first repository set up 😃.</em></strong></p><h3>Step#5 Clone the repository</h3><ul><li>Go to the repo.</li><li>Click on Code -&gt; Select SSH and copy the URL.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JqzldtRTkIN_8OQ3wirp0g.png" /></figure><ul><li>Go to the terminal and run the command in the directory of your choice.</li></ul><pre>mkdir demo<br>cd demo<br>git clone git@github.com:pgolani28/hello-world.git</pre><ul><li>Once the repo is cloned, Run git branch,by default the branch will be in master .</li></ul><pre>git checkout -b NOREF_update_readme</pre><pre>vi README.md</pre><p>Make the changes and save the file.</p><pre>git commit -m &quot;update README&quot;</pre><pre>git push origin NOREF_update_readme</pre><p>Your repo is set now and you are up and running.</p><p>You can go to Github, create a pull request and collaborate with other developers to review your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wOJWE0cjrHLhxoRrhYxKmg.jpeg" /></figure><h3>Conclusion</h3><p>I hope this article was useful to get up and running for your first Github project. Github is a great way to collaborate with developers and helps in contributing and learning from other experienced developers.</p><p>Stay tuned for the next article on creating S3 buckets using terraform.</p><p>Please refer to my playlist <a href="https://medium.com/@prernagolani21/list/installation-guide-4f02fa1b4cbb">installation guide</a> for DevOps and programming languages.</p><p><strong><em>Before you go</em></strong>… <em>If you liked my story and want to support my writing, </em><a href="https://medium.com/@prernagolani21/membership"><em>become a Medium member right here</em></a><em>. For $5 a month, you’ll have access to unlimited stories and I’ll earn a bit of commission at no extra cost to you. Thank you for reading my story and supporting my love of writing.</em></p><p>Please follow me / <a href="https://medium.com/subscribe/@prernagolani21">subscribe to emails</a> so you’ll know as soon as my next post is out.</p><h4>References</h4><p><a href="https://docs.github.com/en/get-started/quickstart/set-up-git">https://docs.github.com/en/get-started/quickstart/set-up-git</a></p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3df63398c94" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/how-to-create-your-first-git-hub-repo-mac-f3df63398c94">How To Create Your First Git Hub Repo — Mac</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self Learning: Number one tool in a software developer toolbox]]></title>
            <link>https://medium.com/geekculture/self-learning-number-one-tool-in-a-software-developer-toolbox-22f20e47dfc4?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f20e47dfc4</guid>
            <category><![CDATA[ckad-exam]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[scala]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Fri, 25 Mar 2022 15:32:32 GMT</pubDate>
            <atom:updated>2022-03-25T15:32:32.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Self-learning : the number one tool in a software developer&#39;s toolbox</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZiMQGsuVd5ZyKkA_Areyg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@dancristianp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Dan-Cristian Pădureț</a> on <a href="https://unsplash.com/s/photos/tools?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I would like to share my journey and how my career got a boost when I focussed more on self-learning from being a junior developer to clearing AWS and CKAD certification with no experience. My hard work paid off when my learning helped me to land a job in Berlin from India.</p><p>I would like to share a few tips before we deep dive into my journey.</p><p><strong><em>Tip #1 Avoid Negative people</em></strong></p><p>Tools if not taken proper care of<strong><em> </em></strong>getting oxidised and form rust, similarly negative people are like the rust they create brain fog and divert us from our goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQoaOmaD2_GTQUmBxB_oag.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@maripotter?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mari Potter</a> on <a href="https://unsplash.com/s/photos/rust-on-tools?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote>The less you respond to negative people , the more peaceful your life will become.</blockquote><p>Our ultimate goal is to keep us surrounded by positive people who help and motivate us.</p><ul><li>Join social groups.</li><li>Connect with people through technical conferences.</li><li>Discuss your ideas with your colleagues in the office whom you trust and get constructive feedback about your ideas.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqUqTHpsiLP0L2wHnim53g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@miinyuii?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Duy Pham</a> on <a href="https://unsplash.com/s/photos/friends?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong><em>Tip#2 Stay focussed</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFaJtRtSTy-JNnTUsn4Hhg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@pawelskor?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Paul Skorupskas</a> on <a href="https://unsplash.com/s/photos/focus-on-goals?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><ul><li>Create short term goals.</li><li>Time management is important.</li><li>Regularly track the progress, it is fine if we cannot meet our goals in the expected time, keep going.</li></ul><p><strong><em>Tip #3 Keep yourself busy in learning</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YIonuwVzw3xYzpkhTsJeGQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@priscilladupreez?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Priscilla Du Preez</a> on <a href="https://unsplash.com/s/photos/studying?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><ul><li>Identify gaps that you want to improve, make a list and start planning.</li><li>Join some courses on platforms like Udemy, Cloud Guru and Coursera.</li><li>Read the blog posts from other developers and appreciate their work.</li></ul><p><strong><em>Tip #4 Share your learning</em></strong></p><p>This is the most important aspect of self-learning, if you created a new solution, cleared a certification or fixed a bug in open source projects, share your learning. One way is to participate in tech talks in your office or tech conferences as a speaker.</p><blockquote>If you have knowledge , let others lit their candles at it.</blockquote><ul><li>It helps to boost confidence.</li><li>Helps to improve collaboration.</li><li>Discussion in forums helps in discovering better ideas.</li></ul><p>Let&#39;s start with my journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OoIOC-djdauCr_2Nh8p7pQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@autumnsgrief?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mark Autumns</a> on <a href="https://unsplash.com/s/photos/journey?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3><strong>My six months of professional gap</strong></h3><p>I was living a normal routine nine to five job as a software developer, I used to think about what&#39;s next after being promoted and being awarded twice in my job I still felt something is missing. I decided to take a break in 2016 and work on myself. The decision was also because of some personal reasons, but this gap changed my outlook drastically.</p><p><strong>Self-promotion can lead to unexpected results<em><br></em></strong>I worked on learning some new technologies like Spark, Big data, Dynamic programming, improving my design skills by reading books. I decided to start giving interviews after a few months and most companies were asking me too many questions about my gap and I did face rejections as well.</p><p>After so many rejections, I retrospected that I could not self promote and lacked confidence. In my next interview, I decided to divert the conversion on my achievements and showcase myself as a self-taught programmer.</p><p>I cracked a reputed banking firm with a more than normal industry standard pay hike.</p><blockquote>The most beautiful thing you can wear is confidence.</blockquote><p><strong>Lessons I learned</strong></p><ul><li>Self-promotion is about making your competence visible.</li><li>Keep learning and don&#39;t stop even in the worst phase of your life.</li></ul><h3>Switching from Java to Scala and learning Akka Streams</h3><p>It was time to experiment with the functional programming language. The learning curve was steep and timelines to complete the project was strict.</p><p><strong><em>Learn Debugging skills<br></em></strong>Learning a new language is not easy. Keep realistic expectations, it is normal to write 40 lines of code and then get stuck and be in this cycle for some time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXyU6ziL93ZAaisYfNkLdg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@dav420?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">David Pupaza</a> on <a href="https://unsplash.com/s/photos/compile-errors?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>Tip#1</strong> Always follow official documentation for learning API, it is the source of truth.</p><p><strong><em>Tip#2</em></strong> Don&#39;t be afraid to ask questions in forums. Stackoverflow is my favourite forum to ask questions.</p><p><strong><em>Tip#3 </em></strong>Solve problems in tech forums. Solving problems helps us gain more confidence and helps us in getting good hands-on in coding.</p><h3><strong>Passing AWS Solution Architect Associate and AWS Developer Associate in six months</strong></h3><p>It was in 2020 I was looking for some good cloud migration projects at my work. I decided to pick up a course CloudGuru.</p><p>It is important first to understand which certification is a fit for your profile, <a href="https://acloudguru.com/blog/engineering/which-aws-certification-should-i-take?utm_campaign=12519326767&amp;utm_source=google&amp;utm_medium=cpc&amp;utm_content=505726436546&amp;utm_term=_&amp;adgroupid=118779662363&amp;gclid=CjwKCAjwoduRBhA4EiwACL5RP2h54f33KFDjGyzBjPqsbLVg_ZLo7GsbZOsU875TEl8dqk6RF6F7oBoCaEEQAvD_BwE">this article</a> explains it well.</p><blockquote>If you are determined to learn then no one can stop you</blockquote><p><strong><em>Tip#1</em></strong> Create a free tier account in AWS.</p><p><strong><em>Tip#2</em></strong> Practice the services, I initially started with making S3 buckets, tables in Dynamodb and EC2 instances.</p><p><strong><em>Tip#3</em></strong> Make sure you make notes after every lesson, it will help a lot in exams.</p><p><strong><em>Tip#4</em></strong> Time management in exams is very important, practice mock exams.<br>I used to study from 5 am to 7 am in morning three times a week, it was difficult with the current pressure of work but it was worth it.</p><p><strong><em>Tip#5 </em></strong>Remember to understand concepts well and don&#39;t be surprised if mock exams questions are not repeated. Mocks exams are just for practice.</p><blockquote>Practice !! Practice !! Practice !!</blockquote><p>I cleared both certifications with flying colours within six months with good results and trust me it was worth the effort.</p><h3>Passing CKAD certification in two months</h3><p>Learning Kubernetes was the most difficult part for me as my current project at work did not had orchestration. I had to find a way to set up Kubernetes on a local machine and practice.</p><p>Minikube to my rescue, refer to my blog post where I have explained how to set up Kubernetes on the local machine.</p><p><a href="https://faun.pub/quick-guide-to-minikube-set-up-on-local-machine-2e87b58bfe22">Quick guide to minikube set up on local machine</a></p><p>CKAD is the live practical exam, unlike AWS which is multiple-choice questions, this exam is real execution of kubectl commands, debugging issues and creating yaml files.<br>Please follow the tips in my blog post for clearing the exam</p><p><a href="https://faun.pub/three-ingredients-to-master-kubernetes-commands-for-ckad-exam-d93837afb59e">Three ingredients to master kubernetes commands for CKAD exam</a></p><h3>Landing job in Berlin</h3><p>After all the hard work from waking up early in the morning, burning my eyes on my laptop and sometimes feeling exhausted was not easy.</p><p>I was trying hard to move abroad for the past threes years. I used to apply to hundreds of applications across the world with no luck and finally one day I saw an opening for a developer experienced in Scala, Akka and AWS. I applied with no hope but to my surprise, I got the interview call and then with a hectic hiring process of two months I cracked it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KKj-OjXkgl9EhvL01WUfHg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@javaistan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Afif Kusuma</a> on <a href="https://unsplash.com/s/photos/goal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Conclusion</h3><p>I hope this article helped to understand that being a self-taught programmer is hard, if we don’t get opportunities at work, we must work hard to create opportunities on our own.</p><blockquote>Small amounts add up to something bigger</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xa23sNEluwZxyua0onHSiQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@spanic?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Damir Spanic</a> on <a href="https://unsplash.com/s/photos/piggy-bank?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>References</h3><p>Book AWS certifications <br><a href="https://www.aws.training/certification">https://www.aws.training/certification</a></p><p>Book CKAD exam <a href="https://training.linuxfoundation.org/certification/certified-kubernetes-application-developer-ckad/">https://training.linuxfoundation.org/certification/certified-kubernetes-application-developer-ckad/</a></p><p>Scala<strong><em> </em></strong><br><a href="https://docs.scala-lang.org/">https://docs.scala-lang.org/</a></p><p>Akka Streams<strong><em> </em></strong><br><a href="https://doc.akka.io/docs/akka/current/stream/stream-quickstart.html">https://doc.akka.io/docs/akka/current/stream/stream-quickstart.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f20e47dfc4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/self-learning-number-one-tool-in-a-software-developer-toolbox-22f20e47dfc4">Self Learning: Number one tool in a software developer toolbox</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Six Months Break in Job Helped To Get Double Pay Hike]]></title>
            <link>https://medium.com/@prernagolani21/six-month-break-in-job-gave-a-return-of-double-salary-a15705d72e00?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15705d72e00</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[coffee-times-movement]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Thu, 24 Mar 2022 10:42:34 GMT</pubDate>
            <atom:updated>2022-03-29T20:04:23.355Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqmEBDOwGotQKt2i5zc11g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jpvalery?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jp Valery</a> on <a href="https://unsplash.com/s/photos/salary?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>People often struggle to back in jobs when they take a break. I would like to share my journey how I planned to take my next role with a double salary.</p><h3><strong>The reason why I decided to quit</strong></h3><p>I passed my engineering from a decent college in 2011 with good grades. I struggled a lot both in proving my potential to be part of the organisation I aspired to be in because the competition was high. In 2014 I finally cracked a company I aspired for.</p><p>Despite having recognition and work satisfaction, I was exhausted due to family responsibilities and a lot of hard work I had put in since I passed my college to get a good decent job. I was just tired. After working for two more years in 2016 I resigned and decided to take a break.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-iei_L2ceJZI1dpnG5Xx5g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jexm?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ephraim Mayrena</a> on <a href="https://unsplash.com/s/photos/tired?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3><strong>Reactions after my resignation</strong></h3><ul><li><strong><em>Family and Friends</em></strong><br>My parents and friends were not happy at all and I understand their reason and care for me. They still supported my decision and advised me to take time and use this period for self-learning.</li><li><strong>Negative people 😉<br></strong>I faced a lot of judgemental opinions about my decisions like creating fears of never getting a job again to being judged as a bad coder who gave up the journey in the middle.</li></ul><h3>Strategies to make this journey smooth</h3><p><strong>Relax <br></strong>We have already taken the decision and now there is no looking back.<br>Take a deep breath and just relax.<br><strong><em>Some of the things I did in my first month after break</em></strong></p><ul><li>Joined yoga class</li><li>Go shopping, you have saved money after working so hard, time to spend some 😉</li><li>Learned cooking from youtube and some TV shows.</li></ul><p><strong><em>Keep the conversation short and precise</em></strong><br>Soft skills are the most important part of personal and professional life, people will ask you again and again about your decision. Speak wisely and be happy about your decision. Avoid explaining reasons.</p><p><strong><em>Identify your weak areas</em></strong></p><p>I would suggest taking a notepad and start writing down by splitting it into small categories</p><p># Personal <br># Professional<br># Miscellaneous for traits that affect multiple areas of your life</p><p><strong><em>Action items</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqNPtNnKmO3QO-2MsNwfsw.jpeg" /></figure><p>Create a list of action items for every weakness you possess.<br>Below were some of my action items which are very simple to do.</p><p># Take a course on Big data.<br># Improve design skills.<br># Participate in competitive programming like Hackerank.<br># Wake up early in the morning and exercise 40 min daily.<br># Pay attention to a balanced diet.<br># Invest money in Mutual Funds.<br># Read books and magazines about science and health.</p><h3>How I planned my comeback into the job</h3><p>By this time already three to four months passed, I was feeling more relaxed, confident and happy 😄.</p><p><strong><em>Shortlist jobs <br></em></strong>I started again with a job hunt on LinkedIn. I checked all the job profiles that matched my tech stack and fitted my future aspirations.</p><p><strong><em>Resume</em></strong> <br>The best feeling was to update my resume and adding Bigdata as a part of my tech stack was an amazing experience.</p><p><strong><em>Myth #1 People who are on break don’t get interview calls.</em></strong></p><p><strong><em>Referrals</em></strong></p><p>My ninety per cent of calls came were through a referral programme. Don’t hesitate to reach out to people and ask for referrals. Linkedin is a great platform to start with.</p><p>Help people to get rich when you join the company as they referred you😃.</p><p><strong><em>Myth #2 I will be judged as a bad non-performing employee as I took a break.</em></strong></p><p><strong><em>Screening Round<br></em></strong>This round is mainly done by HR or Hiring Manager. Be ready to face the most difficult question &quot;What is the reason for your break ?&quot;</p><p><strong><em>Myth #3 I will be rejected in an interview if I tell the truth.<br> </em></strong><br>The best way to answer the question is very simple as follows:<br># Be honest with your reason.<br># Stay confident.<br># Explain how you used this time to relax and how it contributed to your learning.<br># Be positive about yourself.</p><p><strong><em>Final tie-breaker round <br></em></strong>You will reach this round after clearing all technical and system design round.</p><p>In this round, you will negotiate your salary<strong><em> 💰.</em></strong></p><p><strong><em>Myth#4 I will get a zero hike because I have a gap.</em></strong></p><p>If an organisation is good and believes in employee satisfaction, they will never give you zero pay raise instead HR will understand your reasons. A good company will focus on your skills than your gap but exceptions are always there, in case you get the feeling that you are being judged and not paid up to your expectation, don’t accept the offer.</p><p><strong><em>Myth#5 If I reject offers and don’t accept the minimal pay hike I will always be jobless as time is passing by and my gap time is increasing.</em></strong></p><p><strong><em>Patience<br></em></strong>Wait for the right opportunity to come. I rejected two offers before I made the choice.</p><blockquote>Don’t rush on things , when the time is right it will happen.</blockquote><p><strong><em>Negotiate salary</em></strong></p><p>Negotiation skills are very important. To negotiate well do your research on how much average range of salaries you can get with your experience and role offered. This will help HR know that you understand your profile well and will also help them to understand your expectations.</p><h3><strong>Summary of events</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCCTm9RRUnZulowUy6vN3Q.jpeg" /><figcaption>Image by author</figcaption></figure><p>I thank my readers for the time spent reading this article. I hope this will help anyone who is planning to come back from break.</p><h3><strong>References</strong></h3><p>Behavioural interview<br><a href="https://www.youtube.com/watch?v=RFqO4cZfp80">https://www.youtube.com/watch?v=RFqO4cZfp80</a></p><p>Negotiation Salary<br><a href="https://www.youtube.com/watch?v=_PtKv7IXrBI">https://www.youtube.com/watch?v=_PtKv7IXrBI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a15705d72e00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three ingredients to master kubernetes commands for CKAD exam]]></title>
            <link>https://faun.pub/three-ingredients-to-master-kubernetes-commands-for-ckad-exam-d93837afb59e?source=rss-1d924f3a97fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d93837afb59e</guid>
            <category><![CDATA[ckad-exam]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[ckad]]></category>
            <dc:creator><![CDATA[Prerna Golani]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 14:50:46 GMT</pubDate>
            <atom:updated>2022-03-14T14:50:46.240Z</atom:updated>
            <content:encoded><![CDATA[<p>k8 cheat sheet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26j9DFanqFGJUtuGuv2o-w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sonika_agarwal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sonika Agarwal</a> on <a href="https://unsplash.com/s/photos/cook-ingredients?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>CKAD is one of the highly recognised certification and the most important challenge that comes across is to master the k8 commands and attempt all questions in time.</p><p>We need three ingredients as mentioned below:</p><ul><li>Speed</li><li>Time management</li><li>Secret ingredient 😉</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDt8xM7ptKPMvH1F_h4yFw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@qbuffing?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Quinn Buffing</a> on <a href="https://unsplash.com/s/photos/secret?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3><strong>#1. Speed</strong></h3><p>If we want to achieve speed , there is famous quote as below:</p><blockquote>Practice puts brains in your muscles</blockquote><p>CKAD exam is a two hours of practical exam with nineteen questions to attempt requires lot of practice.</p><p>Let me illustrate a series of example from which we can achieve speed.</p><p><strong><em>Example #1- </em>Set up alias<br></strong>Alias will help us to use shorthand for <strong><em>kubectl</em></strong> when writing commands, it might help saving few seconds , but every second counts 😄.</p><pre>alias k=kubectl<br>complete -F __start_kubectl k</pre><p><strong><em>Note</em></strong>: In all the examples , I will be using alias k for kubectl ,in case you wish not to set alias use kubectl or use the alias that you have set using above command.</p><p><strong><em>Example #2 - </em>Shorthands for k8 commands </strong><br><strong>po</strong> for PODs<br><strong>deploy</strong> for Deployments<br><strong>rs</strong> for ReplicaSets<br><strong>svc</strong> for Services<br><strong>sa</strong> for service account<br><strong>ns</strong> for Namespaces<br><strong>netpol</strong> for Network Policies<br><strong>pv</strong> for Persistent Volume<br><strong>pvc</strong> for Persistent Volume Claims</p><pre># Get pods<br>k get po</pre><pre># Get deployments<br>k get deploy</pre><pre># Get service<br>k get svc</pre><p><strong>Example #3- Set context and namespaces</strong></p><p><em>It is very important that we read question and make sure we are in right context and namespace , this is the most common mistakes beginners make.</em><br>Even if the solution provided by you is correct but in wrong context and namespace then you will get no marks for the attempt 😟.<br>For more info on <strong>context </strong>refer link below<strong> </strong><a href="https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#:~:text=Context,to%20communicate%20with%20the%20cluster">https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#:~:text=Context,to%20communicate%20with%20the%20cluster</a>.</p><pre><em># display list of contexts</em><br>kubectl config get-contexts</pre><pre><em># display the current-context<br></em>kubectl config current-context  <br>    <em><br># set the default context to my-cluster-name<br></em>kubectl config use-context my-cluster-name</pre><p>Namespaces are used to separate resources for various users, or environments , defaultas the name suggests is the default namespace.It helps us creating resource limits as well for various namespaces.</p><p><strong>Example :</strong><br>We have separate namespace for dev, test and production environment.</p><pre>k create namespace dev</pre><p><strong><em>Note: We can create one namespace at a time with above command<br></em></strong><em>Let&#39;s try create a pod using a namespace </em><em>dev</em></p><pre>#Create a pod<br>k run nginx --image=nginx --namespace=dev</pre><pre>#Get pods<br>k get pod --namespace=dev</pre><pre>#Output</pre><pre>NAME    READY   STATUS    RESTARTS   AGE</pre><pre>nginx   1/1     Running   0          19s</pre><p><strong>Tip: </strong>Run below command to save<strong> </strong>every time using — -namespace.</p><pre><em># permanently save the namespace for all subsequent kubectl commands in that context.</em><br>kubectl config set-context --current --namespace=ggckad-s2</pre><p><strong>Example#4- Master vim editor shortcuts<br></strong>I preferred using vim editor and below link is my recommendation.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FknyJt8d6C_8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DknyJt8d6C_8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FknyJt8d6C_8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0252bc796799e5c518ccd38f63a0a74f/href">https://medium.com/media/0252bc796799e5c518ccd38f63a0a74f/href</a></iframe><h3>#2. Time management</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZq7xib6EF0SQgP2lxPYeg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nathan Dumlao</a> on <a href="https://unsplash.com/s/photos/time-management?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote>Time isn&#39;t the main thing, it is the only thing.</blockquote><p><strong><em>Tip #1:</em></strong><br>Attempt easy questions on the topics that you have good hands on.</p><p><strong><em>Tip #2 </em></strong>:<br>Mark questions that appear difficult and needs time and come back to these questions at the end.</p><p><strong><em>Tip #3:<br></em></strong>Don&#39;t loose confidence even if the first few questions are tough, mark them and skip until you find the one which you are confident to attempt.</p><p><strong><em>Tip #4:<br></em></strong>We are allowed to use official documentation of the k8 <a href="https://kubernetes.io/docs/home/">https://kubernetes.io/docs/home/</a> so make sure you are familiar with it , I found it useful when writing <strong><em>persistent volume, persistent volume claims, network policies.</em></strong></p><p><strong><em>Tip #5:<br></em></strong><em>Practice the mock exams with time limit, you can download and set up minikube on local machine, refer my previous article</em></p><p><a href="https://medium.com/@prernagolani21/quick-guide-to-minikube-set-up-on-local-machine-2e87b58bfe22">Quick guide to minikube set up on local machine</a></p><p><strong>Kodecloud</strong> is very good platform to practice k8 commands and have handon labs with tutorials refer link :<a href="https://kodekloud.com/">https://kodekloud.com/</a></p><p><strong>Tip #6:</strong><br>Attempt all questions 😃.</p><h3>#3. Our secret ingredient 😉</h3><p>Let&#39;s now introduce to our secret ingredient to generate fast YAML files.<br>I agree we all have this problem of writing YAML files and making small mistakes , spending hours to fix those mistakes. Remember every second counts in exam.</p><p>— -dry-run=client is the imperative command which is our secret ingredient. The command does not create actual resource, but let&#39;s you know how resource will look like one created.</p><p>Let&#39;s understand with an example.</p><ul><li><strong>Create a pod definition</strong><br>The below command will generate a yaml file pod.yaml with pod name as demo , image nginx , label demo</li></ul><pre>k run demo --image=nginx --dry-run=client -o yaml &gt; pod.yaml</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9839b48ae1c3b825c853dcd60e9179da/href">https://medium.com/media/9839b48ae1c3b825c853dcd60e9179da/href</a></iframe><ul><li><strong>Create the actual resource<br></strong>The — -dry-run=client does not create resource , we need to use create command to generate the pod</li></ul><pre>k create -f pod.yaml</pre><pre>#Output<br>NAME                   READY   STATUS    RESTARTS   AGE</pre><pre>demo                   1/1     Running   0          10m</pre><p><strong><em>How easy it is to use and generate resources without getting into errors while writing YAML </em></strong>😃</p><p>Let&#39;s create a deployment named testdeployment</p><pre># To create deployment yaml source<br>k create deployment --image=nginx testdeployment --dry-run=client -o yaml &gt; deploy.yaml</pre><pre># Create deployment<br>k create -f deploy.yaml</pre><pre>#Output<br>NAME             READY   UP-TO-DATE   AVAILABLE   AGE</pre><pre>testdeployment   1/1     1            1           102s</pre><p>Let&#39;s expose pod demo to port 80</p><pre>k expose pod demo --port=80 --name nginx-service --dry-run=client -o yaml &gt; svc.yaml</pre><p>The command creates a service named nginx-service and expose pod demo</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76a1267f398a7961265e96969e860255/href">https://medium.com/media/76a1267f398a7961265e96969e860255/href</a></iframe><pre>#create a service<br>k create -f svc.yaml</pre><pre># Get sevice<br>k get svc</pre><pre>#output<br>kubectl get svc</pre><pre>NAME       TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE</pre><pre>nginx-service   ClusterIP   10.108.167.31   &lt;none&gt;    80/TCP     11s</pre><p>Now we need to get the endpoint of pod</p><pre>kubectl get ep nginx-service</pre><pre>#output<br>NAME            ENDPOINTS       AGE</pre><pre>nginx-service   172.17.0.3:80   40s</pre><p>We will create a temporary pod and wget IP address from bash.</p><pre>kubectl run busybox — rm — image=busybox -it — restart=Never — sh</pre><p><strong><em>Note : The endpoint may differ in your machine</em></strong></p><pre>#Output</pre><pre>If you don&#39;t see a command prompt, try pressing enter.</pre><pre>/ # wget -O- 172.17.0.3:80</pre><pre>Connecting to 172.17.0.3:80 (172.17.0.3:80)</pre><pre>writing to stdout</pre><pre>&lt;!DOCTYPE html&gt;</pre><pre>&lt;html&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;title&gt;Welcome to nginx!&lt;/title&gt;</pre><pre>&lt;style&gt;</pre><pre>html { color-scheme: light dark; }</pre><pre>body { width: 35em; margin: 0 auto;</pre><pre>font-family: Tahoma, Verdana, Arial, sans-serif; }</pre><pre>&lt;/style&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;h1&gt;Welcome to nginx!&lt;/h1&gt;</pre><pre>&lt;p&gt;If you see this page, the nginx web server is successfully installed and</pre><pre>working. Further configuration is required.&lt;/p&gt;</pre><pre>&lt;p&gt;For online documentation and support please refer to</pre><pre>&lt;a href=&quot;http://nginx.org/&quot;&gt;nginx.org&lt;/a&gt;.&lt;br/&gt;</pre><pre>Commercial support is available at</pre><pre>&lt;a href=&quot;http://nginx.com/&quot;&gt;nginx.com&lt;/a&gt;.&lt;/p&gt;</pre><pre>&lt;p&gt;&lt;em&gt;Thank you for using nginx.&lt;/em&gt;&lt;/p&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><pre>-                    100% |********************************************************************************************************************************************************************************************************************************|   615  0:00:00 ETA</pre><pre>written to stdout</pre><p>Hope this article was useful and will be helpful in your journey to master the k8 commands and in clear CKAD exam</p><p><strong>References</strong><br><a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/">https://kubernetes.io/docs/reference/kubectl/cheatsheet/</a><br><a href="https://kubernetes.io/docs/reference/kubectl/conventions/">https://kubernetes.io/docs/reference/kubectl/conventions/</a><br><strong>Book CKAD exam</strong> <a href="https://training.linuxfoundation.org/certification/certified-kubernetes-application-developer-ckad/">https://training.linuxfoundation.org/certification/certified-kubernetes-application-developer-ckad/</a> .</p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d93837afb59e" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/three-ingredients-to-master-kubernetes-commands-for-ckad-exam-d93837afb59e">Three ingredients to master kubernetes commands for CKAD exam</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>